Changeset 8588


Ignore:
Timestamp:
2004-11-17T13:30:09+13:00 (19 years ago)
Author:
mdewsnip
Message:

Removed some more dead code: the "meta audit" menu bar stuff.

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  
    13071307
    13081308
    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 
    13191309    /** 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] */
    13201310    private boolean addSomeMetadataSets(File collection_dir) {
     
    13841374
    13851375    try {
    1386         // We have to ensure that the local library has released this collection so we can delete the index directory
     1376        // Ensure that the local library has released this collection so we can delete the index directory
    13871377        if (!Gatherer.GS3 && Configuration.exec_file != null) {
    13881378        Gatherer.self.configServer(GSDLSiteConfig.RELEASE_COMMAND + collection.getName());
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r8586 r8588  
    772772        }
    773773    }
    774     // "View assigned metadata" menu item is disabled by default
    775     // menu_bar.metadata_view.setCanEnable(false);
    776     menu_bar.setMetaAuditSuffix(null);
    777774
    778775    menu_bar.tabSelected(tab_pane.getSelectedIndex());
    779776    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)) {
    781781        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)) {
    786784        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)) {
    791787        design_pane.gainFocus();
    792788    }
    793     else if(selected_index == tab_pane.indexOfComponent(create_pane)) {
     789    else if (selected_index == tab_pane.indexOfComponent(create_pane)) {
    794790        create_pane.gainFocus();
    795791    }
    796     else if(selected_index == tab_pane.indexOfComponent(mirror_pane)) {
    797         mirror_pane.gainFocus();
    798     }
    799792
    800793    previous_pane = (JPanel) tab_pane.getSelectedComponent();
    801794    }
     795
    802796
    803797    private MouseListener mouse_blocker_listener = new MouseAdapter() {};
  • trunk/gli/src/org/greenstone/gatherer/gui/GatherPane.java

    r8474 r8588  
    404404
    405405    /** 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.DragTree
    407406     */
    408407    public void gainFocus() {
    409     // Update the menubar's idea of whats been selected
    410     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     }
    418408    // Update the meta-audit view to show the current selection, if any.
    419409    Gatherer.g_man.meta_audit.setRecords(getSelected());
  • trunk/gli/src/org/greenstone/gatherer/gui/MenuBar.java

    r8353 r8588  
    269269    }
    270270
    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 
    284271
    285272    /** 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  
    620620        group.grabFocus(this);
    621621    }
    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     }
    630622    }
    631623
Note: See TracChangeset for help on using the changeset viewer.