Changeset 13734


Ignore:
Timestamp:
2007-01-23T11:53:50+13:00 (17 years ago)
Author:
mdewsnip
Message:

Made a bit more of CollectionManager static.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java

    r13594 r13734  
    4242import org.greenstone.gatherer.Gatherer;
    4343import org.greenstone.gatherer.collection.CollectionContentsChangedListener;
     44import org.greenstone.gatherer.collection.CollectionManager;
    4445import org.greenstone.gatherer.greenstone.Plugins;
    4546import org.greenstone.gatherer.gui.DesignPaneHeader;
     
    8687    ensureMetadataXMLPlugIsLoaded();
    8788    // Listen for CollectionContentsChanged events, so we can give plugin hints when new files are added
    88     Gatherer.c_man.addCollectionContentsChangedListener(this);
     89    CollectionManager.addCollectionContentsChangedListener(this);
    8990   
    9091    }
     
    178179    public void destroy()
    179180    {
    180     Gatherer.c_man.removeCollectionContentsChangedListener(this);
     181    CollectionManager.removeCollectionContentsChangedListener(this);
    181182
    182183    if (controls != null) {
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r13600 r13734  
    130130
    131131
    132     public void addCollectionContentsChangedListener(CollectionContentsChangedListener listener)
     132    static public void addCollectionContentsChangedListener(CollectionContentsChangedListener listener)
    133133    {
    134134    collection_contents_changed_listeners.add(listener);
     
    11781178
    11791179
    1180     public void removeCollectionContentsChangedListener(CollectionContentsChangedListener listener)
     1180    static public void removeCollectionContentsChangedListener(CollectionContentsChangedListener listener)
    11811181    {
    11821182    collection_contents_changed_listeners.remove(listener);
Note: See TracChangeset for help on using the changeset viewer.