Source View

Any file which contains text can be viewed and edited in Source View. You can view a file in Source View by clicking the Source View tab, or, to navigate to a particular method within a web service, double click the method name in Design View. Once a file is displayed in Source View, you can navigate to a particular method by selecting from the dropdown lists directly below the Design and Source View tabs. Navigating to particular method causes that method to be highlighted with a yellow background color.

Code Editing Features

Source View provides the following code editing features.

Java class files (JWS, CTRL and JAVA files) are parsed and color coded to highlight the various elements of the source code. For example, keywords are colored blue, comments are colored grey, and @jws annotations are colored red. You can customize the color coding through the Preferences dialog. Access the Preferences dialog by selecting Preferences from the Tools menu.

Code completion and error highlighting are performed for classes that on a class path used by the WebLogic Workshop visual development environment. The class path is defined by the paths.classPath property in the Workshop.properties file. If you would like Source View to provide code completion and error highlighting for additional classes, edit the Workshop.properties file to add class files or JAR files to the paths.classPath, then restart the WebLogic Workshop visual development environment. To learn more about WebLogic Workshop properties, see Workshop.properties Configuration File.

Breakpoints can be set by clicking in the empty column to the right of the line numbers. Breakpoints are indicated by a red dot and red background highlighting. Breakpoints can be removed by clicking on the red dot.

When you compile a file displayed in Source View, the Error Pane will appear at the bottom of the screen. If any error message occur, double clicking on a particular message moves the cursor next to the offending code.

Red squiggly lines appear underneath code which is syntactically incorrect. Hover the cursor over the red squiggly lines to receive hints about how to correct the syntax.

Related Topics

Design View