Ignore:
Timestamp:
2006-09-21T15:24:25+12:00 (18 years ago)
Author:
mdewsnip
Message:

Removed CollectionManager.configurationChanged() and all 50 calls to it. The CollectionConfiguration class now works out itself whether it needs to be changed or not -- a far more reliable approach.

File:
1 edited

Legend:

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

    r10556 r12808  
    5959        Node target_node = CollectionConfiguration.findInsertionPoint(element);
    6060        add(root, metadata, target_node);
    61         if (!metadata.getValue(CollectionMeta.TEXT).equals("")) {
    62         // if just adding an empty metadata, the configuration hasn't changed.
    63         Gatherer.c_man.configurationChanged();
    64         }
    65     }
    66     //Gatherer.c_man.configurationChanged();
     61    }
    6762    }
    6863
     
    180175        if(name.equals(other.getName()) && language.equals(other.getLanguage())) {
    181176            remove(i);
    182             Gatherer.c_man.configurationChanged();
    183177            return;
    184178        }
     
    192186    /** Removes all of the metadata with a certain name, regardless of language or value. */
    193187    public void removeMetadata(String name) {
    194     boolean removed_entry = false;
    195188    for(int i = getSize(); i != 0; i--) {
    196189        CollectionMeta other = (CollectionMeta) getElementAt(i - 1);
    197190        if(name.equals(other.getName())) {
    198191        remove(i - 1);
    199         removed_entry = true;
    200192        }
    201193        other = null;
    202194    }   
    203     if(removed_entry) {
    204         Gatherer.c_man.configurationChanged();
    205     }
    206195    }
    207196
Note: See TracChangeset for help on using the changeset viewer.