Changeset 4933 for trunk/gli/src/org/greenstone/gatherer/collection
- Timestamp:
- 2003-07-15T14:17:08+12:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/collection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/BuildOptions.java
r4675 r4933 213 213 } 214 214 else if(node_name.equals("Desc")) { 215 argument.setDesc (MSMUtils.getValue(node));215 argument.setDescription(MSMUtils.getValue(node)); 216 216 } 217 217 else if(node_name.equals("Type")) { … … 219 219 } 220 220 else if(node_name.equals("Default")) { 221 argument.setDefault (MSMUtils.getValue(node));221 argument.setDefaultValue(MSMUtils.getValue(node)); 222 222 } 223 223 else if(node_name.equals("List")) { -
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r4805 r4933 376 376 } 377 377 378 collection.cdm = new CollectionDesignManager( );378 collection.cdm = new CollectionDesignManager(new File(getCollectionConfig())); 379 379 collection.gdm = new GDMManager(); 380 380 … … 783 783 msm = collection.msm; // Legacy 784 784 collection.msm.load(); 785 collection.cdm = new CollectionDesignManager( );785 collection.cdm = new CollectionDesignManager(new File(collection_file.getParent(), Utility.CONFIG_DIR)); 786 786 collection.gdm = new GDMManager(); 787 787 // Tell everyone that it worked. … … 933 933 } 934 934 /** Determine if the manager is ready for actions apon its collection. 935 936 937 938 939 940 941 942 943 944 945 946 935 * @return A <i>boolean</i> which is <i>true</i> to indicate a collection has been loaded and thus the collection is ready for editing, <i>false</i> otherwise. 936 */ 937 938 public synchronized boolean ready() { 939 if(collection != null) { 940 return true; 941 } 942 else { 943 return false; 944 } 945 } 946 947 947 public synchronized boolean reallyReady() { 948 if(collection == null) {949 Gatherer.println("Called reallyReady() when collection was null.");950 Gatherer.println("Closing thread = " + closing_thread);951 Gatherer.println("This thread = " + Thread.currentThread());952 Gatherer.println("Thus we return: " + (closing_thread == null || closing_thread == Thread.currentThread() ? "not ready" : "ready"));953 }954 948 // If the closing thread is non-null we should only allow that thread to see the collection as closed. 955 949 if(closing_thread != null) { 956 957 958 959 960 961 962 963 950 // Only the closing thread sees the truth 951 if(Thread.currentThread() == closing_thread) { 952 return (collection == null); 953 } 954 // All other threads are told a lie. 955 else { 956 return true; 957 } 964 958 } 965 959 else { 966 967 968 969 970 971 972 } 973 960 if(collection != null) { 961 return true; 962 } 963 else { 964 return false; 965 } 966 } 967 } 974 968 /** Called to refresh the models upon which the trees are based. 975 976 969 * @see org.greenstone.gatherer.collection.Collection 970 */ 977 971 public void refreshTrees() { 978 972 }
Note:
See TracChangeset
for help on using the changeset viewer.