Changeset 9019


Ignore:
Timestamp:
2005-02-14T11:34:01+13:00 (19 years ago)
Author:
mdewsnip
Message:

Fixed bug where CollectionContentsChangedListener isn't removed from destroyed PluginManager object.

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

Legend:

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

    r8853 r9019  
    115115
    116116    /** Destructor. */
    117     public void destroy() {
    118     if(controls != null) {
     117    public void destroy()
     118    {
     119    Gatherer.c_man.removeCollectionContentsChangedListener(this);
     120
     121    if (controls != null) {
    119122        controls.destroy();
    120123        controls = null;
    121124    }
     125
    122126    library.clear();
    123127    library = null;
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r9017 r9019  
    219219    collection = null;
    220220    collection_model = null;
    221     // workspace_model = null;
    222221    Configuration.setCollectionConfiguration(null);
    223222    Gatherer.refresh(Gatherer.COLLECTION_CLOSED);
     
    11621161    public void registerImportMonitor(GShellProgressMonitor monitor) {
    11631162    import_monitor = monitor;
     1163    }
     1164
     1165
     1166    public void removeCollectionContentsChangedListener(CollectionContentsChangedListener listener)
     1167    {
     1168    collection_contents_changed_listeners.remove(listener);
    11641169    }
    11651170
Note: See TracChangeset for help on using the changeset viewer.