- Timestamp:
- 2003-10-16T11:20:11+13:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/cdm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionDesignManager.java
r5590 r5649 43 43 import org.greenstone.gatherer.cdm.SubcollectionManager; 44 44 import org.greenstone.gatherer.cdm.TranslationView; 45 import org.greenstone.gatherer.util.GSDLSiteConfig; 45 46 46 47 /** This manager provides access to submanagers, which in turn provide tools for the designing of Greenstone collections via the information stored in etc/collect.cfg. This class acts as a hub for the managers that handle specific parts of the configuration such as classifiers, format strings and language settings. … … 155 156 general_manager.gainFocus(); 156 157 } 158 157 159 /** Retrieve the name of the collection configuration file which is being used as the source of the information in this object. 158 160 * @return The files absolute path as a <strong>String</strong>. … … 173 175 * @see org.greenstone.gatherer.util.EmailAddress 174 176 */ 175 public void save() { 176 general_manager.loseFocus(); 177 collect_config.save(); 178 } 177 public void save() { 178 // Release collection as necessary 179 ///ystem.err.println("Would have released collection if necessary."); 180 boolean collection_released = false; 181 if(format_manager.formatsChanged() && Gatherer.c_man.built() && Gatherer.config.exec_file != null) { 182 // Release the collection 183 Gatherer.g_man.preview_pane.configServer(GSDLSiteConfig.RELEASE_COMMAND + Gatherer.c_man.getCollection().getName()); 184 collection_released = true; 185 } 186 187 general_manager.loseFocus(); 188 collect_config.save(); 189 190 // Readd collection 191 ///ystem.err.println("Would have added collection if it had been released."); 192 if(collection_released) { 193 // Then re-add it to force format commands to be processed 194 Gatherer.g_man.preview_pane.configServer(GSDLSiteConfig.ADD_COMMAND + Gatherer.c_man.getCollection().getName()); 195 // Unset formats changed 196 format_manager.setFormatsChanged(false); 197 } 198 } 199 179 200 /** Method used during a global search and replace to highlight the appropriate record within the Collection Design Managers version of the Metadata Set Manager (view only). 180 201 * @param element The name of the desired element as a <strong>String</strong>. -
trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java
r5595 r5649 58 58 private Control controls; 59 59 /** The panel apon which is rendered the currently selected section screen. */ 60 60 private Control view = null; 61 61 /** A tree to serve as a 'table of contents' for this design tool. We decided on a tree rather than a list, as it allows us to break sections into subsections if they become to complicated. */ 62 62 private DesignTree tree; … … 113 113 114 114 /** Saves the state of the controls in the current view. */ 115 116 117 118 115 public void loseFocus() { 116 if (view != null) { 117 view.loseFocus(); 118 } 119 119 } 120 120
Note:
See TracChangeset
for help on using the changeset viewer.