SlickEdit Core v3.7 for Eclipse

Information in this documentation is subject to change without notice and does not represent a commitment on the part of SlickEdit Inc. The software described in this document is protected by U.S. and international copyright laws and by other applicable laws, and may be used or copied only in accordance with the terms of the license or nondisclosure agreement that accompanies the software. It is against the law to copy the software on any medium except as specifically allowed in the license or nondisclosure agreement. The licensee may make one copy of the software for backup purposes. No part of this documentation may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or information storage and retrieval systems, for any purpose other than the licensee's personal use, without the express written permission of SlickEdit Inc.

Copyright 1988-2010 SlickEdit Inc.

www.slickedit.com

SlickEdit, Visual SlickEdit, Clipboard Inheritance, DIFFzilla, SmartPaste, Context Tagging, Slick-C, and Code Quick | Think Slick are registered trademarks of SlickEdit Inc. All other products or company names are used for identification purposes only and may be trademarks of their respective owners. Protected by U.S. Patent 5,710,926.


Table of Contents

1. Introduction
What is SlickEdit Core?
Getting the Most Out of SlickEdit® Core
Learn About Our Cool Features
Write More Code, Faster
Quick Start
Register Your Product
New Features and Enhancements
64-bit Version for Windows
Multithreading
Improved PL/I and COBOL Support
Workspace Tagging Excludes
Auto-Reload Performed on a Thread
SlickEdit License Manager
Documentation
Documentation Updates/Feedback
Other Resources
Documentation Conventions
The Help System
Supported Languages and Environments
Supported Languages and File Types
Supported Editor Emulations
Installation
System Requirements
Installing SlickEdit® Core
Licensing
Uninstalling SlickEdit® Core
Product Support
Contacting Product Support
Product Improvement Program
Performance Tuning
First Steps
File Locations
Memory and Caching
Tuning Context Tagging
Profiling
2. Quick Start
Quick Start Configuration Wizard
Emulation
Colors
Fonts
Coding
Context Tagging
More Information
Additional Settings
General Options
Language-Specific Options
Start Coding
3. User Interface
Screen Layout
The Workbench
The Workspace
Perspectives
The SlickEdit® Core Editor
Overview Ruler
Switching Between Editors
Menus
Views
Status Area
Dialogs
Command Line
SlickEdit® Core Views
Opening SlickEdit® Core Views
Available SlickEdit® Core Views
SlickEdit® Core Command Line
Activating the Command Line
Command Line History
Command Line Completion
Using Shortcuts Inside the Command Line
Using the Command Line to View Key Binding Associations
Command Line Switches
Starting a Program from the Command Line (Shelling)
Command Line Prompting
Common SlickEdit® Core Commands
Using the Mouse and Keyboard
Emulations
Key Shortcuts in Text Boxes
Redefining Common Keys
Printing
Printing on Windows
Printing on Linux
Inserting a Formfeed
4. User Preferences
Introduction to User Preferences (Options)
Global Options
Language-Specific Options
Saving, Restoring, and Backing-up User Preferences
Emulations
Supported Emulations
Changing Emulations
Determining Keys/Functions
Vim Tutorial
Key and Mouse Bindings
What is a Binding?
Managing Bindings
Key Binding Settings
Executing Eclipse Commands From the SlickEdit® Editor
Tips on Finding Eclipse Command Information
Cursor, Mouse, and Scroll Settings
Setting the Cursor Style
Hiding the Mouse Pointer
Displaying Tool Tips
Scroll Bar and Scroll Style Settings
Fonts
Setting Fonts for Screen Elements
Colors, Color Coding, and Symbol Colors
Colors
Symbol Coloring
Color Coding
5. Context Tagging®
Context Tagging Features
Tag-Driven Navigation
List Members
Parameter Information
Auto List Compatible Parameters
Completions
Symbol Browsing
Statement Level Tagging
Building and Managing Tag Files
Tag File Categories
Building Tag Files
Managing Tag Files
Context Tagging® Options
6. Editing Features
Notifications
Feature Notifications
Basic Editing
Overview
Selections
Cut, Copy, Paste, and Move
Clipboards
Other Operations
Navigation
Code Navigation
Cursor Navigation
Symbol Browsing
Class View
Outline View
Find Symbol View
Preview View
References View
Symbols View
Symbol Properties View
Viewing and Displaying
Colors and Color Coding
Current Line
Modified Lines
Viewing Special Characters
Viewing Line Numbers
Soft Wrap
Selective Display
Hex/Line Hex View
Other Display Options
Syntax Indent and SmartPaste®
Syntax Indent
SmartPaste®
Adaptive Formatting
Enabling/Disabling Adaptive Formatting
Recognized Settings
Scanning for Styles in Use
Completions
Auto-Complete
Auto-Close
Word Completion
Configuring Completion Settings
Aliases
Expanding Aliases
Global Aliases
Language-Specific Aliases
Syntax Expansion
Syntax Expansion Settings
Modifying Syntax Expansion Templates
Adding Syntax Expansion for Other Languages
Code Templates
Instantiating a Template
Creating Templates
Substitution Parameters
Organizing Templates
Template Manager Operations
Template Manager Dialog
Template Options Dialog
Add File Dialog
Add Parameter Dialog
Add New Item Dialog
Locating Templates
Manually Creating a Template
Code Template Metadata File Reference
Quick Brace/Unbrace
Using Quick Brace/Unbrace
Disabling Quick Brace/Unbrace
Surrounding and Unsurrounding
Dynamic Surround
Surround With
Unsurround
Bookmarks
Named Bookmarks
Pushed Bookmarks
Setting Breakpoints
Setting Conditional Breakpoints
Setting Java Exception Breakpoints
Commenting
Commenting Blocks and Lines
Doc Comments
String Editing
Comment Wrapping
Beautifying Code
Code Beautifiers
Reflowing Text
Quick Refactoring
Available Refactorings
Reviewing Refactoring Changes
Java Refactoring
7. Language-Specific Editing
Introduction to Language-Specific Editing
Language-Specific Preferences
Language Editing Mode
Managing Languages
Managing File Extensions
Managing Extensionless Files
Ada
Ada Formatting Options
Ada Beautifier
Ant
Ant Options
C and C++
C/C++ Formatting Options
C/C++ Beautifier
C/C++ Compiler Settings
C/C++ Preprocessing
COBOL
COBOL Formatting Options
Java
Initial Setup
Java-Specific Features
Java-Specific Interfaces
Pascal
Pascal Formatting Options
PL/I
PL/I Formatting Options
Python
Begin/End Structure Matching for Python
XML and HTML
XML
HTML
Auto Symbol Translation
XML/HTML Formatting
Outline View for XML
8. Tools and Utilities
Find and Replace
Default Search Options
Quick Search and Replace
Incremental Searching
Find and Replace Commands
Find and Replace View
Find Symbol View
Find and Replace with Regular Expressions
Undoing/Redoing Replacements
Match Highlighting
Comparing and Merging
DIFFzilla
3-Way Merge
File History and Backups
Compare Two Backup History Elements Using DIFFzilla®
Compare a Local Backup History Element with the Current Version Using DIFFzilla®
Spell Checking
Spell Check Operations
Running Spell Check
Sorting Text
Sort Commands
FTP
Working with FTP
Setting FTP Options
Regular Expressions
Overview
Using Regular Expressions in SlickEdit® Core
The Regex Evaluator
Regular Expression Syntax
Unicode Categories and Character Blocks
Using the Calculator and Math Commands
The Calculator
Math Commands
OS File Browser
9. Macros and Macro Programming
Recorded Macros
Common Macro Operations
Recording a Macro
Binding Recorded Macros to Keys
Running a Recorded Macro
Saving and Editing Recorded Macros
Deleting Recorded Macros
Using Macros to Discover and Control Options
Programmable Macros
Slick-C® Modules
Slick-C® Variables (Config Variables)
Slick-C® Batch Macros
State File
Slick-C® Header Files and More Resources
10. Menus, Dialogs, and Views
Menu Overview
File
File Menu
File Dialogs and Views
Edit
Edit Menu
Edit Dialogs and Views
Format
Format Menu
Format Dialogs and Tool Windows
Display
Display Menu
Display Dialogs and Views
Navigate
Navigate Menu
Navigate Dialogs and Views
Search
Search Menu
Search Dialogs and Views
Macro
Macro Menu
Macro Dialogs and Views
Tools
Tools Menu
Tools Dialogs and Views
Preferences
Preferences Dialog
Appearance Preferences
Keyboard and Mouse Preferences
Editing Preferences
Language Preferences
File Preferences
Application Preferences
Network & Internet Preferences
Tool Preferences
Preferences History
Export/Import Preferences
Window
Help
Help Menu
Help Dialogs and Views
11. Appendix
Encoding
Using Unicode
Environment Variables
Setting Environment Variables in vslick.ini
Using the set Command
Configuration Variables
Viewing Configuration Variables
Setting/Changing Configuration Variables
Table of Configuration Variables
Configuration Directories and Files
User Configuration Directory
System Configuration Files
File Search Order
Search Order for Configuration Files
Search Order for Executable Files
VLX File and Color Coding
Modifying the VLX File to Change a Color Definition
Creating a Lexer Name and a New VLX File
Editing the Key Binding Source
Using the ISPF and XEDIT Emulations
ISPF Options
ISPF Primary Commands
ISPF Line Commands
Menu Editing
Creating and Editing Menus
Emulation Tables
CUA Keys
Visual C++ Keys
SlickEdit® Core Keys
Brief Keys
Epsilon Keys
Vim Keys
GNU Emacs Keys
ISPF Keys
CodeWarrior Keys
CodeWright Keys
Xcode Keys
BBEdit Keys
Visual Studio Default Keys
12. Slick-C® Macro Programming Guide
Introduction
Working with the Slick-C® Source Code
Slick-C® Naming Conventions
Differences Between Slick-C® and C++
Structures
Arrays
Hash Tables
Assignment Statement
Comparison Operator
Preprocessing
switch Statement
Labeled Loops
Variable Argument Functions
Built-in Graphics Primitives
Clipboard Inheritance®
End of Statement Semicolon
Type Checking
Capability not Supported by Slick-C®
Four Ways to Use Slick-C®
Recording Slick-C® Macros
Key Bindable Command
Event-Driven Dialog Boxes
Batch Macros
Language Constructs
Identifiers
Reserved Words and Keywords
Comments
String Literals
Numeric Literals
Defining Constants Using #define
Namespaces
Types
Strings
Enumerated Types
Arrays
Hash Tables
Structs
Unions
Interfaces
Classes
Pointers
Typeless
Mathematical Operators
Declarations
Scoping and Declaring Variables
Simple Variables
Implicit Local Variables
Declaring Local Variables With :=
Declaring Variables With auto
Statements
Assignment Operator
if Statement
Block Statement
Loops
parse Statement
switch Statement
Functions
Defining a Procedure
Defining a Command
Class Methods
Function Prototypes
Differences Between Commands, Built-ins, and Defs
Preprocessing
#if
#pragma
#region and #endregion
Including Header Files
Importing Slick-C Modules
Defining Controls
Defining Events and Event Tables
def Primitive
Event-Driven Dialog Boxes
Module Initializations
Compiling and Loading Macros
Debugging Macros
Finding Procedures
Finding Run-Time Errors
Performance Profiling
Slick-C® Debugger
Error Handling and the rc Variable
Dialog Editor
Microsoft Visual Basic and Slick-C®
Creating Dialog Boxes
Dialog Editor Summary
Adding and Deleting Controls
Setting Properties
Aligning Controls
Sizing Controls
Moving Controls
Miscellaneous Assignments When the Form is Active
Miscellaneous Menu Items
Creating a Form
Saving a Form
Adding Event Handlers
Inherited Code Found Dialog Box
Loading and Running the Form
Modal and Modeless Dialog Boxes
Dialog Box Parent Window
Clipboard Inheritance®
Clipboard Inheritance® Overview
Clipboard Inheritance® Example
Dialog Box Inheritance Order
Objects and Instances
Active Object
Active Form
Instance Expressions
Using Functions as Methods
Built-in Controls
Label Control
Spin Control
Text Box Control
Editor Control
Frame Control
Command Button Control
Radio Button Control
Check Box Control
List Box Control
Combo Box Control
Scroll Bar Controls
Drive List Control
File List Box Control
Directory List Box Control
Picture Box Control
Gauge Control
Image Control
Adding Dialog Box Retrieval
Menus
Menu Editor Dialog Box
Menu Item Alias Dialog Box
Auto Enable Properties Dialog Box
Creating and Editing Menu Resources
Common Macro Dialog Boxes
String Functions
Search Functions
Selection Functions
Writing Selection Filters
Unicode and SBCS or DBCS Macro Programming
Shelling Programs from a Slick-C® Macro
Interfacing With Other Languages (DLL)
Command Line Interface
Command Line Arguments
get_string Procedure
Single Argument Prompting with Support for Prompt Style
Hooking Startup and Exit
Invoking a Macro on Startup
Invoking a Macro on Exit
State File Caching
Windows Data Structure
Window Properties
View Properties
Buffer Properties
Tutorials
Defining Stack Routines
Searching for a String Within a Current Function
Reading and Modifying Buffers
Working with Existing Macros
Events
Event Names
Keys
13. Glossary
Index