- Timestamp:
- 2006-09-21T15:24:25+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionMetaManager.java
r10556 r12808 59 59 Node target_node = CollectionConfiguration.findInsertionPoint(element); 60 60 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 } 67 62 } 68 63 … … 180 175 if(name.equals(other.getName()) && language.equals(other.getLanguage())) { 181 176 remove(i); 182 Gatherer.c_man.configurationChanged();183 177 return; 184 178 } … … 192 186 /** Removes all of the metadata with a certain name, regardless of language or value. */ 193 187 public void removeMetadata(String name) { 194 boolean removed_entry = false;195 188 for(int i = getSize(); i != 0; i--) { 196 189 CollectionMeta other = (CollectionMeta) getElementAt(i - 1); 197 190 if(name.equals(other.getName())) { 198 191 remove(i - 1); 199 removed_entry = true;200 192 } 201 193 other = null; 202 194 } 203 if(removed_entry) {204 Gatherer.c_man.configurationChanged();205 }206 195 } 207 196
Note:
See TracChangeset
for help on using the changeset viewer.