Bug 208898 No line number in script editor
The script editor doesn't show any line number, even when the eclipse "show line number" setting for text editors is set. This prevents the user to identify script errors when they are reported by line number. The chart script error reporting actually mentions the line number of the error, so it would be useful to show the line numbers in this scenario.
UI/org.eclipse.birt.report.designer.ui.editors.schematic/src/org/eclipse/birt/report/designer/internal/ui/editors/script/ScriptEditor.java
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.jface.text.source.SourceViewer;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.IWorkbenchPartSite;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.texteditor.IDocumentProvider;
import org.eclipse.ui.texteditor.ITextEditorActionConstants;
import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds;
import org.eclipse.ui.texteditor.StatusTextEditor;
import org.eclipse.ui.texteditor.TextOperationAction;
/**
 * The text editor for script.
 */
public class ScriptEditor extends StatusTextEditor implements IScriptEditor
{
	/**
	 * The javascript syntax context, provides methods to access avaible Type
	 * meta-data.
	 */
	private final JSSyntaxContext context = new JSSyntaxContext( );
	
	private IEditorInput input = createScriptInput( null );
	
	private ActionRegistry actionRegistry = null;
	/**
	 * Constructs an script editor.
	 */