Changeset 23433 for main/trunk/gli/src/org/greenstone/gatherer/gui
- Timestamp:
- 2010-12-09T22:27:33+13:00 (13 years ago)
- Location:
- main/trunk/gli/src/org/greenstone/gatherer/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/gui/EnrichPane.java
r18593 r23433 44 44 import org.greenstone.gatherer.collection.CollectionTreeNode; 45 45 import org.greenstone.gatherer.gui.tree.DragTree; 46 import org.greenstone.gatherer.metadata.FilenameEncoding; 46 47 import org.greenstone.gatherer.metadata.MetadataElement; 47 48 import org.greenstone.gatherer.metadata.MetadataValue; … … 287 288 public void valueChanged(TreeSelectionEvent event) 288 289 { 290 if(FilenameEncoding.isRefreshRequired()) { 291 // The CollectionTree is in the process of being re-built to deal with filename-encodings, 292 // so don't mess up the table during that time. 293 // (CollectionTreeNode.refreshDescendantEncodings() doesn't cope well if this method 294 // responds on Tree selection changes while the tree is updating its encodings, resulting in lost 295 // and misplaced metadata values in the table and thereby in the metadata.xml files themselves). 296 return; 297 } 298 299 289 300 // If we haven't got focus then it must have been a selection in the Gather pane, so don't bother rebuilding 290 301 if (has_focus == false) { -
main/trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java
r23143 r23433 59 59 import org.greenstone.gatherer.gui.metaaudit.MetaAuditFrame; 60 60 import org.greenstone.gatherer.gui.tree.DragTree; 61 import org.greenstone.gatherer.metadata.FilenameEncoding; 61 62 import org.greenstone.gatherer.metadata.MetadataSet; 62 63 import org.greenstone.gatherer.metadata.MetadataXMLFileManager; … … 295 296 tab_pane.setSelectedComponent(gather_pane); 296 297 Gatherer.c_man.closeCollection(); 298 FilenameEncoding.closeCollection(); // clear filename-to-encodings map 297 299 } 298 300
Note:
See TracChangeset
for help on using the changeset viewer.