Conventions Used in this tutorial
There are some conventions we'll use that you should know about. When we've added a new piece of code and are discussing it, it'll appear in bold face, and when there's more code to come, you'll see three dots. Here's what that looks like:
Listener listener = new Listener( ) {
public void handleEvent(Event event) {
ToolItem item = (ToolItem)event.widget;
String string = item.getText( );
.
.
.
}
};
We'll also use the standard convention for selecting menu items in this tutorial; for example, to create a new project in Eclipse, you use the File New Project menu item. The following typographical conventions are used in this tutorial:
- Plain text
-
Indicates menu titles, menu options, menu buttons, and keyboard accelerators.
- Italic
-
Indicates new terms, example URLs, example email addresses, filenames, file extensions, pathnames, directories, and Unix utilities.
- Constant width
-
Indicates commands, options, switches, variables, types, classes, namespaces, methods, modules, properties, parameters, values, objects, events, event handlers, and XML tags.
- Constant width italic
-
Indicates text that should be replaced with user-supplied values.
|
This icon signifies a tip, suggestion, or general note.
|
|
|
This icon indicates a warning or caution.
|
|
|