String filePath = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getFileName( ); String fileName = filePath.substring( filePath.lastIndexOf( File.separator ) + 1 );
if ( editLibrary( ) ) { String filePath = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getFileName( ); fileName = filePath.substring( filePath.lastIndexOf( File.separator ) + 1 ); libHandle = (LibraryHandle) SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); } else if ( selectLibrary( ) ) { IFile file = getSelectedFile( navigator ); if ( file == null ) { return; }
	public void run( IAction action )	{		if ( isEnable( ) == false )		{			return;		}		String filePath = SessionHandleAdapter.getInstance( )				.getReportDesignHandle( )				.getFileName( );		String fileName = filePath.substring( filePath.lastIndexOf( File.separator ) + 1 );		PublishLibraryWizard publishLibrary = new PublishLibraryWizard( (LibraryHandle) SessionHandleAdapter.getInstance( )				.getReportDesignHandle( ),				fileName,				ReportPlugin.getDefault( ).getResourcePreference( ) );		WizardDialog dialog = new WizardDialog( UIUtil.getDefaultShell( ),				publishLibrary );		dialog.setPageSize( 500, 250 );		dialog.open( );	}