Changeset 8588
- Timestamp:
- 2004-11-17T13:30:09+13:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r8586 r8588 1307 1307 1308 1308 1309 public void setClosingThread(boolean set) {1310 if(set) {1311 closing_thread = Thread.currentThread();1312 }1313 else {1314 closing_thread = null;1315 }1316 }1317 1318 1319 1309 /** I started giving the user the choice of using an existing meta set or creating a new one. The second option being so that they didn't have to add/merge/ignore each element, they could all be added automatically. However, I am not sure where the merge prompt gets called from, and it is not essential, so I am leaving it for now - it should be added back in and finished. [kjdon] */ 1320 1310 private boolean addSomeMetadataSets(File collection_dir) { … … 1384 1374 1385 1375 try { 1386 // We have to ensure that the local library has released this collection so we can delete the index directory1376 // Ensure that the local library has released this collection so we can delete the index directory 1387 1377 if (!Gatherer.GS3 && Configuration.exec_file != null) { 1388 1378 Gatherer.self.configServer(GSDLSiteConfig.RELEASE_COMMAND + collection.getName()); -
trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java
r8586 r8588 772 772 } 773 773 } 774 // "View assigned metadata" menu item is disabled by default775 // menu_bar.metadata_view.setCanEnable(false);776 menu_bar.setMetaAuditSuffix(null);777 774 778 775 menu_bar.tabSelected(tab_pane.getSelectedIndex()); 779 776 int selected_index = tab_pane.getSelectedIndex(); 780 if( selected_index == tab_pane.indexOfComponent(gather_pane)) { 777 if (selected_index == tab_pane.indexOfComponent(mirror_pane)) { 778 mirror_pane.gainFocus(); 779 } 780 else if (selected_index == tab_pane.indexOfComponent(gather_pane)) { 781 781 gather_pane.gainFocus(); 782 // "View assigned metadata" menu item is enabled for the "Gather" pane 783 // menu_bar.metadata_view.setCanEnable(true); 784 } 785 else if(selected_index == tab_pane.indexOfComponent(enrich_pane)) { 782 } 783 else if (selected_index == tab_pane.indexOfComponent(enrich_pane)) { 786 784 enrich_pane.gainFocus(); 787 // "View assigned metadata" menu item is enabled for the "Enrich" pane 788 // menu_bar.metadata_view.setCanEnable(true); 789 } 790 else if(selected_index == tab_pane.indexOfComponent(design_pane)) { 785 } 786 else if (selected_index == tab_pane.indexOfComponent(design_pane)) { 791 787 design_pane.gainFocus(); 792 788 } 793 else if (selected_index == tab_pane.indexOfComponent(create_pane)) {789 else if (selected_index == tab_pane.indexOfComponent(create_pane)) { 794 790 create_pane.gainFocus(); 795 791 } 796 else if(selected_index == tab_pane.indexOfComponent(mirror_pane)) {797 mirror_pane.gainFocus();798 }799 792 800 793 previous_pane = (JPanel) tab_pane.getSelectedComponent(); 801 794 } 795 802 796 803 797 private MouseListener mouse_blocker_listener = new MouseAdapter() {}; -
trunk/gli/src/org/greenstone/gatherer/gui/GatherPane.java
r8474 r8588 404 404 405 405 /** Called to inform this control panel that it has just gained focus as an effect of the user clicking on its tab. 406 * @see org.greenstone.gatherer.gui.tree.DragTree407 406 */ 408 407 public void gainFocus() { 409 // Update the menubar's idea of whats been selected410 if (collection_tree != null) {411 if (collection_tree.isSelectionEmpty()) {412 Gatherer.g_man.menu_bar.setMetaAuditSuffix(null);413 }414 else {415 Gatherer.g_man.menu_bar.setMetaAuditSuffix(collection_tree.getSelectionDetails());416 }417 }418 408 // Update the meta-audit view to show the current selection, if any. 419 409 Gatherer.g_man.meta_audit.setRecords(getSelected()); -
trunk/gli/src/org/greenstone/gatherer/gui/MenuBar.java
r8353 r8588 269 269 } 270 270 271 public void setMetaAuditSuffix(String metaaudit_suffix) {272 // ///ystem.err.println("**** Set suffix: " + metaaudit_suffix);273 // if(metaaudit_suffix == null) {274 // metadata_view.setText(Dictionary.get("Menu.Metadata_View") + " " + Dictionary.get("FileActions.No_Selection"));275 // metadata_view.setEnabled(false);276 // }277 // else {278 // ///ystem.err.println("Set metadata view suffix: " + metaaudit_suffix);279 // metadata_view.setText(Dictionary.get("Menu.Metadata_View") + " " + metaaudit_suffix);280 // metadata_view.setEnabled(true);281 // }282 }283 284 271 285 272 /** In order to provide context aware help advice we keep track of which -
trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTree.java
r8352 r8588 620 620 group.grabFocus(this); 621 621 } 622 if(name.equals("Collection") || name.equals("MetaEdit")) {623 if(event.getNewLeadSelectionPath() == null) {624 Gatherer.g_man.menu_bar.setMetaAuditSuffix(null);625 }626 else {627 Gatherer.g_man.menu_bar.setMetaAuditSuffix(getSelectionDetails());628 }629 }630 622 } 631 623
Note:
See TracChangeset
for help on using the changeset viewer.