ModuleHandle handle = null;
	public void run( IAction action )	{		// TODO Auto-generated method stub		IFile file = getSelectedFile( );		if ( file == null )		{			return;		}		String url = file.getLocation( ).toOSString( );		try		{			ModuleHandle handle = SessionHandleAdapter.getInstance( )					.getSessionHandle( )					.openLibrary( url );			if ( !( handle instanceof LibraryHandle ) )			{				action.setEnabled( false );				return;			}			String filePath = handle.getFileName( );			String fileName = null;			if(filePath != null && filePath.length( ) != 0)			{				fileName = filePath.substring( filePath.lastIndexOf( File.separator ) + 1 );			}						PublishLibraryWizard publishLibrary = new PublishLibraryWizard( (LibraryHandle) handle,					fileName,					ReportPlugin.getDefault( ).getResourcePreference( ) );			WizardDialog dialog = new WizardDialog( UIUtil.getDefaultShell( ),					publishLibrary );			dialog.setPageSize( 500, 250 );			dialog.open( );		}		catch ( Exception e )		{			ExceptionHandler.handle( e );			return;		}	}