- Timestamp:
- 2009-08-03T13:34:50+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/gui/CreatePane.java
r19753 r20117 407 407 sargument_configuration_panel = options_pane.buildImport(null); 408 408 sargument_configuration_panel = options_pane.buildBuild(sargument_configuration_panel); 409 // if(CollectionManager.canDoScheduling()) {410 // sargument_configuration_panel = options_pane.buildSchedule(sargument_configuration_panel);411 // }412 409 } 413 410 else { … … 497 494 sargument_configuration_panel = options_pane.buildImport(null); 498 495 sargument_configuration_panel = options_pane.buildBuild(sargument_configuration_panel); 499 // if(CollectionManager.canDoScheduling()) {500 // sargument_configuration_panel = options_pane.buildSchedule(sargument_configuration_panel);501 //}502 496 } 503 497 else { … … 906 900 importing = new OptionTreeNode(Dictionary.get("CreatePane.Import")); 907 901 importing.setToolTipText(Dictionary.get("CreatePane.Import_Tooltip")); 908 scheduling = new OptionTreeNode(Dictionary.get("CreatePane.Schedule")); 909 scheduling.setToolTipText(Dictionary.get("CreatePane.Schedule_Tooltip")); 910 902 if (CollectionManager.canDoScheduling()) { 903 scheduling = new OptionTreeNode(Dictionary.get("CreatePane.Schedule")); 904 scheduling.setToolTipText(Dictionary.get("CreatePane.Schedule_Tooltip")); 905 906 } 911 907 log = new OptionTreeNode(Dictionary.get("CreatePane.Log")); 912 908 log.setToolTipText(Dictionary.get("CreatePane.Log_Tooltip")); … … 917 913 model.insertNodeInto(importing, options, 0); 918 914 model.insertNodeInto(building, options, 1); 919 model.insertNodeInto(scheduling, options, 2); 920 model.insertNodeInto(log, options, 3); 915 if (CollectionManager.canDoScheduling()) { 916 model.insertNodeInto(scheduling, options, 2); 917 model.insertNodeInto(log, options, 3); 918 } else { 919 model.insertNodeInto(log, options, 2); 920 } 921 921 // Expand the root node 922 922 expandPath(new TreePath(options)); … … 953 953 } 954 954 if(node != null && node.equals(building)) { 955 build_button.setActionCommand(Dictionary.get("CreatePane.Build_Collection"));955 build_button.setActionCommand(Dictionary.get("CreatePane.Build_Collection")); 956 956 build_button.setText(Dictionary.get("CreatePane.Build_Collection")); 957 957 … … 971 971 //target_pane.add(previous_pane, BorderLayout.CENTER); 972 972 } 973 else if(node != null && node.equals(scheduling) && CollectionManager.canDoScheduling()) {973 else if(node != null && CollectionManager.canDoScheduling() && node.equals(scheduling)) { 974 974 build_button.setActionCommand(Dictionary.get("CreatePane.Schedule_Build")); 975 975 build_button.setText(Dictionary.get("CreatePane.Schedule_Build"));
Note:
See TracChangeset
for help on using the changeset viewer.