getModel( ).setResourceFolder( getProjectFolder( ) );
if ( getModel( ) != null ) { getModel( ).setResourceFolder( getProjectFolder( ) ); }
	public void partActivated( IWorkbenchPart part )	{		if ( part != this )		{			if ( part instanceof PageBookView )			{				PageBookView view = (PageBookView) part;				if ( view.getCurrentPage( ) instanceof DesignerOutlinePage )				{					ISelectionProvider provider = (ISelectionProvider) view.getCurrentPage( );					ReportRequest request = new ReportRequest( view.getCurrentPage( ) );					List list = new ArrayList( );					if ( provider.getSelection( ) instanceof IStructuredSelection )					{						list = ( (IStructuredSelection) provider.getSelection( ) ).toList( );					}					request.setSelectionObject( list );					request.setType( ReportRequest.SELECTION );					// no convert					// request.setRequestConvert(new					// EditorReportRequestConvert());					SessionHandleAdapter.getInstance( )							.getMediator( )							.notifyRequest( request );					SessionHandleAdapter.getInstance( )							.getMediator( )							.pushState( );				}			}			if ( getActivePageInstance( ) instanceof GraphicalEditorWithFlyoutPalette )			{				if ( ( (GraphicalEditorWithFlyoutPalette) getActivePageInstance( ) ).getGraphicalViewer( )						.getEditDomain( )						.getPaletteViewer( ) != null )				{					GraphicalEditorWithFlyoutPalette editor = (GraphicalEditorWithFlyoutPalette) getActivePageInstance( );					GraphicalViewer view = editor.getGraphicalViewer( );					view.getEditDomain( ).loadDefaultTool( );				}			}			return;		}		if ( part == this )		{			if ( getEditorInput( ).exists( ) )			{				handleActivation( );				SessionHandleAdapter.getInstance( )						.setReportDesignHandle( getModel( ) );			}			if ( getActivePageInstance( ) instanceof GraphicalEditorWithFlyoutPalette					&& getActivePageInstance( ) instanceof IReportEditorPage )			{				Display.getCurrent( ).asyncExec( new Runnable( ) {					public void run( )					{						// UIUtil.resetViewSelection( view, true );						if ( getActivePageInstance( ) != null )						{							( (IReportEditorPage) getActivePageInstance( ) ).onBroughtToTop( (IReportEditorPage) getActivePageInstance( ) );						}					}				} );				// UIUtil.resetViewSelection( view, true );			}		}		getModel( ).setResourceFolder( getProjectFolder( ) );	}