Bug 203888 Syntax Checker for JavaScript
BIRT provides the report developer the ability to use JavaScript to build custom logic in reports. Report developers currently do not have the ability to validate JavaScript code during design. JavaScript errors are only caught at runtime. This project looks at providing report developers the ability to validate JavaScript code at design time. The benefits of doing so are increased report developer productivity since errors can be caught and corrected at design time instead of at runtime.
UI/org.eclipse.birt.report.designer.ui.editors.schematic/src/org/eclipse/birt/report/designer/internal/ui/editors/script/JSEditor.java
public void selectionChanged( SelectionChangedEvent event )
	{
	}
	/*
	 * SelectionChanged. - Selection listener implementation for changes in
	 * other views Selection of elements in other views, triggers this event. -
	 * The code editor view is updated to show the methods corresponding to the
	 * selected element.
	 */
	public void handleSelectionChanged( SelectionChangedEvent event )
	{
		ISelection selection = event.getSelection( );
		handleSelectionChanged( selection );
	}
	public void handleSelectionChanged( ISelection selection )
	{
		if ( getSourceViewer( ) == null
				|| !getSourceViewer( ).getTextWidget( ).isVisible( ) )
		{
			return;
		}
		if ( editorUIEnabled == true )
		{
			
			
			saveModel( );
		}
		if ( selection != null )
		{
			settingText = true;