String defaultName = new File( library.getFileName( ) ).getName( ) .split( File.separator + "." )[0]; ImportLibraryDialog dialog = new ImportLibraryDialog( defaultName ); if ( dialog.open( ) == Dialog.OK )
catch ( Exception e )
	public void run( )	{		if ( isEnabled( ) )		{			ModuleHandle moduleHandle = SessionHandleAdapter.getInstance( )					.getReportDesignHandle( );						LibraryHandle library = getSelectedLibrary( );			if(library ==null)			{				return;			}						String defaultName = new File( library.getFileName( ) ).getName( )					.split( File.separator + "." )[0];			ImportLibraryDialog dialog = new ImportLibraryDialog( defaultName );			if ( dialog.open( ) == Dialog.OK )			{				try				{					moduleHandle.includeLibrary( getRelativedPath( moduleHandle.getFileName( ),							library.getFileName( ) ),							(String) dialog.getResult( ) );					ExceptionHandler.openMessageBox( MSG_DIALOG_TITLE,							MessageFormat.format( MSG_DIALOG_MSG, new String[]{								library.getFileName( )							} ),							SWT.ICON_INFORMATION );				}				catch ( Exception e )				{					ExceptionHandler.handle( e );				}			}		}	}