The following indicators can help for identify problems in your code. The build process is discussed in detail under Building ProvideX Projects. This section will focus on how error messages are associated with the ProvideX source code.
As a resource is (re)built, information will be updated to the Console view. This view will show a summary of the results of the build process; if there are errors in the source code this summary will include information about the number of errors found. Also, for each error found in the source file, an error line will be added to the Problem view and a marker will be placed in the vertical ruler of your source code.
To demonstrate this process...
Open DemoApp > src > prog > outputpdf.pvc.pvt in the editor by double clicking the resource in the Navigator view.
Add a syntax error by typing the following at the end of the source
listing:
x = "an error"
Click the close (X) button on the editor's tab to close the editor.
When a project contains many application programs, there may be occassions when there are several programs with errors or warnings. Eclipse allows the list of items reported in the Problems view to be filtered to reduce the number of items that are displayed to only those that match the filter criteria.
In the Problems view...
Press the drop-down button to access the menu and select 'Configure Contents' to create/maintain filters.
Create a new filter with a name of 'CurrentAppOnly'.
Select to limit the scope of the filter to 'Selected element and its children'.
Make this the active filter and disable any others.
Once the number of items in the Problems view has been reduced to a managable quantity...
The file is opened in the editor at the location of the problem.
Correct the problem in the editor...
Change the variable "X" a string variable by adding the "$" character to the X variable. The modified line should be similar to:
x$ = "a string value"
Click the Save button. The program is rebuilt and the problem indicators disappear.
You can configure how problems are indicated on the
General > Editors >
Text Editors > Annotations preference page.
Next Section: Using the Local History