The Source page of the Java Service editor embeds the Java Source editor from the Eclipse Java Development tooling. Consequently, you can use content assist, syntax highlighting, and other features of the Java Source editor. For example:
Content assist displays a scrollable list of completions for the method call or other expression that you are typing. To invoke content assist, press Ctrl + Space or select Edit | Content Assist.
Syntax highlighting displays different code elements in different colors, for example, Javadoc comments display in a different color than non-Javadoc comments and literal string values display in a different color than other expressions.
Automatic compilation compiles files when you save changes, displaying errors and warnings displayed in the Problems view and as red X marks in the vertical ruler in the editor view.
Quick fix suggests simple changes to resolve syntax or compilation errors in the code, for example, quick fix may generate a catch block to catch exceptions that are not declared in a method's throws clause. To invoke Quick fix, place the cursor at the location of the error and press Ctrl + 1 or select Edit | Quick Fix.
For more information on these features, see the Java Development User Guide.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com