Changeset 8253


Ignore:
Timestamp:
2004-10-08T14:49:47+13:00 (20 years ago)
Author:
mdewsnip
Message:

Moved some stuff out of Configuration.updateUI into GUIManager because it depends on the Gatherer.class. More to come.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
4 edited

Legend:

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

    r8236 r8253  
    967967    UIManager.put("ScrollBar.background", new ColorUIResource(getColor("coloring.scrollbar_background", false)));
    968968    UIManager.put("ScrollBar.thumb", new ColorUIResource(getColor("coloring.scrollbar_foreground", false)));
    969     if (Gatherer.g_man != null) {
    970         JPanel pane = (JPanel) Gatherer.g_man.getContentPane();
    971         pane.updateUI();
    972         // Also update all of the tabs according to workflow.
    973         Gatherer.g_man.workflowUpdate("Mirror", get("workflow.mirror", false));
    974         Gatherer.g_man.workflowUpdate("Gather", get("workflow.gather", false));
    975         Gatherer.g_man.workflowUpdate("Enrich", get("workflow.enrich", false));
    976         Gatherer.g_man.workflowUpdate("Design", get("workflow.design", false));
    977         Gatherer.g_man.workflowUpdate("Export", get("workflow.export", false));
    978         Gatherer.g_man.workflowUpdate("Create", get("workflow.create", false));
    979     }
    980969    }
    981970}
  • trunk/gli/src/org/greenstone/gatherer/collection/Collection.java

    r8243 r8253  
    105105    // Point the Configuration class at our gatherer config arguments.
    106106    Configuration.setCollectionConfiguration(document);
     107    if (Gatherer.g_man != null) {
     108        Gatherer.g_man.updateUI();
     109    }
    107110    // Finally create all of the child managers that are directly dependant on a collection
    108111    build_options = new BuildOptions(getBuildValues(), getImportValues());
     
    119122    msm.destroy();
    120123    Configuration.setCollectionConfiguration(null);
     124    if (Gatherer.g_man != null) {
     125        Gatherer.g_man.updateUI();
     126    }
    121127    cdm = null;
    122128    document = null;
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r8243 r8253  
    235235    Configuration.setCollectionConfiguration(null);
    236236    if (Gatherer.g_man != null) {
     237        Gatherer.g_man.updateUI();
    237238        Gatherer.g_man.collectionChanged(false);
    238239    }
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r8243 r8253  
    889889    private MouseListener mouse_blocker_listener = new MouseAdapter() {};
    890890
     891    public void updateUI()
     892    {
     893    JPanel pane = (JPanel) getContentPane();
     894    pane.updateUI();
     895    // Also update all of the tabs according to workflow.
     896    workflowUpdate("Mirror", Configuration.get("workflow.mirror", false));
     897    workflowUpdate("Gather", Configuration.get("workflow.gather", false));
     898    workflowUpdate("Enrich", Configuration.get("workflow.enrich", false));
     899    workflowUpdate("Design", Configuration.get("workflow.design", false));
     900    workflowUpdate("Export", Configuration.get("workflow.export", false));
     901    workflowUpdate("Create", Configuration.get("workflow.create", false));
     902    }
     903
    891904    public void wait(boolean waiting) {
    892905    Component glass_pane = getGlassPane();
Note: See TracChangeset for help on using the changeset viewer.