IWorkbenchWindow window = PlatformUI.getWorkbench( ) .getActiveWorkbenchWindow( );  if ( window != null ) { IWorkbenchPage pg = window.getActivePage( );  if ( pg != null ) { IEditorPart editor = pg.getActiveEditor( );  if ( editor != null && editor.getEditorInput( ) instanceof FileEditorInput ) { if ( editor instanceof ReportEditor ) { return true; } } } }  return false;
return getActiveEditor( ) != null;
	public static boolean isReportEditorActivated( )	{		IWorkbenchWindow window = PlatformUI.getWorkbench( )				.getActiveWorkbenchWindow( );		if ( window != null )		{			IWorkbenchPage pg = window.getActivePage( );			if ( pg != null )			{				IEditorPart editor = pg.getActiveEditor( );				if ( editor != null						&& editor.getEditorInput( ) instanceof FileEditorInput )				{					if ( editor instanceof ReportEditor )					{						return true;					}				}			}		}		return false;	}