Ignore:
Timestamp:
2004-05-27T17:12:03+12:00 (20 years ago)
Author:
mdewsnip
Message:

Some tidy ups in preparation for finalising the workspace and collection tree refreshing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r7326 r7482  
    9191    public MirrorPane mirror_pane = null;
    9292    /** The gather pane is more like a file manager where you drag files from one tree to another. */
    93     public GatherPane gather_pane = null;
     93    private GatherPane gather_pane = null;
    9494    /** The enrich pane is used to assign, edit and remove metadata from files within the collection. */
    9595    public EnrichPane enrich_pane = null;
     
    619619    }
    620620
    621     public void refreshTrees(int refresh_reason)
     621
     622    public void refreshCollectionTree(int refresh_reason)
     623    {
     624    if (gather_pane != null) {
     625        gather_pane.refreshCollectionTree(refresh_reason);
     626    }
     627    }
     628
     629
     630    public void refreshWorkspaceTree(int refresh_reason)
    622631    {
    623632    if (gather_pane != null) {
    624633        gather_pane.refreshWorkspaceTree(refresh_reason);
    625         gather_pane.refreshCollectionTree(refresh_reason);
    626     }
    627     }
    628 
    629     /** Allows the system to programatically set the selected tab.
    630      * @param component The view you wish to make visable in the tab pane as a <strong>Component</strong>.
    631      */
    632     public void setSelectedView(Component component) {
    633     tab_pane.setSelectedComponent(component);
    634     }
     634    }
     635    }
     636
     637
     638    /** Returns to some "initial" pane (when no collection is loaded) */
     639    public void returnToInitialPane()
     640    {
     641    if (gather_pane != null) {
     642        tab_pane.setSelectedComponent(gather_pane);
     643    }
     644    }
     645
    635646
    636647    /** Specifies whether a certain tab is enabled or not. */
Note: See TracChangeset for help on using the changeset viewer.