Changeset 8353 for trunk/gli/src/org/greenstone/gatherer/collection
- Timestamp:
- 2004-10-18T11:50:18+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r8313 r8353 108 108 static final public String LOCK_FILE = "gli.lck"; 109 109 110 static public final int COLLECTION_OPENED = 10; 111 static public final int COLLECTION_CLOSED = 11; 112 static public final int COLLECTION_REBUILT = 12; 113 110 114 /** Used to indicate the source of the message is the file collection methods. */ 111 115 static final public int COLLECT = 3; … … 239 243 if (Gatherer.g_man != null) { 240 244 Gatherer.g_man.updateUI(); 241 Gatherer.g_man. collectionChanged(false);245 Gatherer.g_man.refresh(COLLECTION_CLOSED, false); 242 246 } 243 247 // All of the consequences of a close should have been processed by now, so others should now see the collection as non-ready. … … 494 498 Gatherer.g_man.refreshWorkspaceTree(WorkspaceTree.LIBRARY_CONTENTS_CHANGED); 495 499 496 Gatherer.g_man. collectionChanged(ready());500 Gatherer.g_man.refresh(COLLECTION_OPENED, ready()); 497 501 } 498 502 } … … 983 987 // We're done. Let everyone know. 984 988 if (Gatherer.g_man != null) { 985 Gatherer.g_man. collectionChanged(ready());989 Gatherer.g_man.refresh(COLLECTION_OPENED, ready()); 986 990 } 987 991 result = true; … … 1158 1162 1159 1163 // Fire a collection changed first to update the preview etc buttons 1160 Gatherer.g_man. collectionChanged(ready());1164 Gatherer.g_man.refresh(COLLECTION_REBUILT, ready()); 1161 1165 1162 1166 // Now display a message dialog saying its all built … … 1169 1173 else { 1170 1174 JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CollectionManager.Preview_Ready_Failed"), Dictionary.get("CollectionManager.Preview_Ready_Title"), JOptionPane.ERROR_MESSAGE); 1171 Gatherer.g_man. collectionChanged(ready());1175 Gatherer.g_man.refresh(COLLECTION_REBUILT, ready()); 1172 1176 } 1173 1177 } … … 1178 1182 } else { 1179 1183 JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CollectionManager.Preview_Ready_Failed"), Dictionary.get("CollectionManager.Preview_Ready_Title"), JOptionPane.ERROR_MESSAGE); 1180 Gatherer.g_man. collectionChanged(ready());1184 Gatherer.g_man.refresh(COLLECTION_REBUILT, ready()); 1181 1185 } 1182 1186
Note:
See TracChangeset
for help on using the changeset viewer.