Changeset 11628 for trunk


Ignore:
Timestamp:
2006-04-07T17:05:48+12:00 (18 years ago)
Author:
mdewsnip
Message:

Tidied up the MetaAuditFrame so it doesn't require any parameters or use the tree synchronizer.

Location:
trunk/gli/src/org/greenstone/gatherer/gui
Files:
2 edited

Legend:

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

    r11626 r11628  
    112112    this.size = size;
    113113    this.collection_tree_sync = new TreeSynchronizer();
    114     this.meta_audit = new MetaAuditFrame(collection_tree_sync, null);
    115114   
    116115    this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
     
    375374        tab_pane.setEnabledAt(tab_pane.indexOfComponent(create_pane), false);
    376375        }
     376
     377        // The MetaAuditFrame must be created after the gather/enrich panes but before they get focus
     378        meta_audit = new MetaAuditFrame();
    377379
    378380        // Select the collect pane if it is available
  • trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/MetaAuditFrame.java

    r8783 r11628  
    9090    private boolean invalid = true;
    9191    /** An array holding the most recent list of paths selected (plus some nulls for those paths removed). */
    92     private CollectionTreeNode records[];
     92    private CollectionTreeNode[] records = null;
    9393    /** A reference to ourselves so that inner classes can interact with us. */
    9494    private MetaAuditFrame self;
     
    9898    static final private Dimension SIZE = new Dimension(640,505);
    9999
    100     /** Constructor.*/
    101     public MetaAuditFrame(TreeSynchronizer tree_sync, CollectionTreeNode records[]) {
     100
     101    public MetaAuditFrame()
     102    {
    102103    super(Gatherer.g_man);
    103104
    104105    // Arguments
    105106    this.autofilter_dialog = new AutofilterDialog(this);
    106     this.records = records;
    107107    this.self = this;
    108108    this.table = new MetaAuditTable(this);
     
    122122    // Connection
    123123    close_button.addActionListener(new CloseListener());
    124     tree_sync.addTreeSelectionListener(this);
     124    Gatherer.c_man.getCollectionTree().addTreeSelectionListener(this);
    125125
    126126    // Layout
Note: See TracChangeset for help on using the changeset viewer.