- Timestamp:
- 2009-05-01T14:57:14+12:00 (15 years ago)
- Location:
- gli/trunk/src/org/greenstone/gatherer
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/Gatherer.java
r19304 r19306 122 122 static public boolean isGsdlRemote = false; 123 123 124 /* TODO: If we're using local GLI, collections are built locally. If we're using client-GLI 125 * and it contains a gs2build folder in it, then localBuild will also be true (if this is not 126 * turned off in Preferences). If we're remote and this is turned off in Prefs, build remotely. */ 127 /*static public boolean buildingLocally = true;*/ 128 /** If we're using local GLI, we can always download. If we're using client-GLI, we can only 129 * download if we have a gs2build folder inside it. And if we don't turn off downloadEnabling 130 * in the preferences. 131 */ 132 static public boolean isDownloadEnabled = true; 133 124 134 // feedback stuff 125 135 /** is the feedback feature enabled? */ … … 171 181 172 182 // We don't have a local Greenstone! 173 go.gsdl_path = null;174 183 go.gsdl3_path=null; 175 184 go.gsdl3_src_path=null; 176 185 186 // Don't set go.gsdl_path to null, since gdsl_path may still be set 187 // if we have a client-gli containing gs2build folder. 188 // However, keep track of whether we can download. 189 if(go.gsdl_path == null) { 190 isDownloadEnabled = false; 191 } 192 177 193 // We have to use our own collect directory since we can't use the Greenstone one 178 194 setCollectDirectoryPath(getGLIUserDirectoryPath() + "collect" + File.separator); 179 195 } 180 // No, we have a local Greenstone 181 else { 196 // We have a local Greenstone. OR we have a gs2build folder inside 197 // the client-GLI folder (with which the Download panel becomes enabled) 198 if(isDownloadEnabled) { 182 199 LocalGreenstone.setDirectoryPath(go.gsdl_path); 183 200 } -
gli/trunk/src/org/greenstone/gatherer/download/DownloadJob.java
r17837 r19306 236 236 command_list.add("-S"); 237 237 } 238 239 // the following also works for client-gli if downloading is enabled (when there's a gs2build directory inside gli) 238 240 command_list.add(LocalGreenstone.getBinScriptDirectoryPath()+"downloadfrom.pl"); 239 241 command_list.add("-download_mode"); -
gli/trunk/src/org/greenstone/gatherer/gui/GUIManager.java
r19271 r19306 375 375 tab_pane.setFont(Configuration.getFont("general.font", false)); 376 376 377 if (Configuration.get("workflow.download", true) ) {377 if (Configuration.get("workflow.download", true) && Gatherer.isDownloadEnabled) { 378 378 download_pane = new DownloadPane(); 379 379 // "GUI.Download_Tooltip" is used automatically -
gli/trunk/src/org/greenstone/gatherer/gui/MenuBar.java
r18370 r19306 216 216 help.add(help_general); 217 217 help.add(new JSeparator()); 218 if (Configuration.get("workflow.download", true) ) {218 if (Configuration.get("workflow.download", true) && Gatherer.isDownloadEnabled) { 219 219 help.add(help_download); 220 220 } -
gli/trunk/src/org/greenstone/gatherer/gui/Preferences.java
r18589 r19306 638 638 workflow_download = new JCheckBox(Dictionary.get("GUI.Download")+" - "+Dictionary.get("GUI.Download_Tooltip")); 639 639 workflow_download.setComponentOrientation(Dictionary.getOrientation()); 640 workflow_download.setSelected(Configuration.get("workflow.download", false) );640 workflow_download.setSelected(Configuration.get("workflow.download", false) && Gatherer.isDownloadEnabled); 641 641 workflow_download.setPreferredSize(ROW_SIZE); 642 642
Note:
See TracChangeset
for help on using the changeset viewer.