IEditorPart editor = UIUtil.getActiveEditor( true ); ILibraryProvider provider = (ILibraryProvider) editor.getAdapter( ILibraryProvider.class ); LibraryHandle[] libraries = provider.getLibraries( ); for ( int i = 0; i < libraries.length; i++ )
for ( Iterator iter = moduleHandle.getLibraries( ).iterator( ); iter.hasNext( ); )
	public void run( )	{		Object obj = getSelection( );		if ( obj instanceof ReportDesignHandle || obj instanceof LibraryHandle )		{			ModuleHandle moduleHandle = (ModuleHandle) obj;			IEditorPart editor = UIUtil.getActiveEditor( true );			ILibraryProvider provider = (ILibraryProvider) editor.getAdapter( ILibraryProvider.class );			LibraryHandle[] libraries = provider.getLibraries( );			for ( int i = 0; i < libraries.length; i++ )			{				try				{					if(moduleHandle.isInclude( libraries[i]))					{						moduleHandle.reloadLibrary( libraries[i] );					}									}				catch ( SemanticException e )				{					e.printStackTrace( );				}				catch ( DesignFileException e )				{					e.printStackTrace( );				}			}		}	}