page = ( (FormEditor) editor ).getActivePageInstance( );
page = ( (MultiPageReportEditor) editor ).getCurrentPageInstance( );
	private SourceViewer getViewer( )	{		IEditorPart activeEditor = PlatformUI.getWorkbench( )				.getActiveWorkbenchWindow( )				.getActivePage( )				.getActiveEditor( );		IFormPage page = null;		if ( activeEditor instanceof MultiPageReportEditor )		{			page = ( (MultiPageReportEditor) activeEditor ).getActivePageInstance( );		}		else if ( activeEditor instanceof IReportEditor )		{			IEditorPart editor = ( (IReportEditor) activeEditor ).getEditorPart( );			if ( editor instanceof FormEditor )			{				page = ( (FormEditor) editor ).getActivePageInstance( );								}		}		if ( page instanceof ReportScriptFormPage )		{			if ( ( (ReportScriptFormPage) page ).getScriptEditor( ) instanceof JSEditor )			{				return ( (JSEditor) ( (ReportScriptFormPage) page ).getScriptEditor( ) ).getViewer( );			}		}		return null;	}