- Timestamp:
- 2003-05-27T15:18:24+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/MetaEditPane.java
r4338 r4352 218 218 } 219 219 else if(esrc == update) { 220 System.err.println("MEP.Update!"); 220 221 // You can only update if there is a selected_metadata and 221 222 // you have valid values in all fields. … … 223 224 String value = tree.getSelectedValue(); 224 225 if(selected_metadata != null && records != null && element != null && value != null) { 225 // If the selected_metadata is at directory level then this is actually an add with Replace set. 226 if(selected_metadata.isFileLevel()) { 227 selected_metadata = Gatherer.c_man.getCollection().msm.updateMetadata(System.currentTimeMillis(), selected_metadata, records, value, -1); 228 } 229 else { 230 Gatherer.c_man.getCollection().msm.addMetadata(System.currentTimeMillis(), records, element, value, MetaEditPrompt.OVERWRITE_ALL); 231 } 226 selected_metadata = Gatherer.c_man.getCollection().msm.updateMetadata(System.currentTimeMillis(), selected_metadata, records, value, MetaEditPrompt.OVERWRITE, selected_metadata.isFileLevel()); 232 227 } 233 228 // Slight hack. Used to do this automatically if a value was added to the GValueModel, however this caused a Garbage Collection loop with the latest incarnation of FileQueue, so I've removed it and I'll manually call the value tree update here.
Note:
See TracChangeset
for help on using the changeset viewer.