String defaultName = new File( filename ).getName( ).split( "\\." )[0];
	public void run( )	{		FileDialog dialog = new FileDialog( UIUtil.getDefaultShell( ), SWT.OPEN );		dialog.setFilterExtensions( new String[]{			"*.rptlibrary" //$NON-NLS-1$			} );		String filename;		try		{			filename = dialog.open( );		}		catch ( Throwable e )		{			return;		}		if ( filename != null )		{			if ( !isInExplorer( filename ) )			{				addToPreference(filename);			}			String defaultName = new File( filename ).getName( ).split( "\\." )[0];			ModuleHandle moduleHandle = SessionHandleAdapter.getInstance( )					.getReportDesignHandle( );			try			{				if ( SessionHandleAdapter.getInstance( )						.getReportDesignHandle( )						.getLibrary( defaultName ) != null )				{					ImportLibraryDialog importDialog = new ImportLibraryDialog( defaultName );					if ( importDialog.open( ) == Dialog.OK )					{						moduleHandle.includeLibrary( DEUtil.getRelativedPath( moduleHandle.getFileName( ),								filename ),								(String) importDialog.getResult( ) );						ExceptionHandler.openMessageBox( MSG_DIALOG_TITLE,								MessageFormat.format( MSG_DIALOG_MSG, new String[]{										filename								} ),								SWT.ICON_INFORMATION );					}				}				else				{					moduleHandle.includeLibrary( DEUtil.getRelativedPath( moduleHandle.getFileName( ),							filename ),							defaultName );					ExceptionHandler.openMessageBox( MSG_DIALOG_TITLE,							MessageFormat.format( MSG_DIALOG_MSG, new String[]{									filename							} ),							SWT.ICON_INFORMATION );				}			}			catch ( Exception e )			{				ExceptionHandler.handle( e );			}								}	}