if ( PlatformUI.isWorkbenchRunning( ) ) { setParentShell( PlatformUI.getWorkbench( ) .getDisplay( ) .getActiveShell( ) ); }
	public IWizardContext open( String[] sTasks, String topTaskId,			IWizardContext initialContext )	{		Chart chart = ( (ChartWizardContext) initialContext ).getModel( );		if ( chart == null )		{			setTitle( Messages.getString( "ChartWizard.Title.NewChart" ) ); //$NON-NLS-1$		}		else		{			setTitle( Messages.getString( "ChartWizard.Title.EditChart" ) ); //$NON-NLS-1$			// Add adapters to chart model			chart.eAdapters( ).add( adapter );		}		if ( PlatformUI.isWorkbenchRunning( ) )		{			setParentShell( PlatformUI.getWorkbench( )					.getDisplay( )					.getActiveShell( ) );		}		return super.open( sTasks, topTaskId, initialContext );	}