Changeset 13801


Ignore:
Timestamp:
2007-01-25T14:45:07+13:00 (15 years ago)
Author:
mdewsnip
Message:

No longer updates the metadata value table when selections are made in the Gather pane.

File:
1 edited

Legend:

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

    r13705 r13801  
    6060    static private Dimension COLLECTION_TREE_SIZE = new Dimension(250, 500);
    6161
     62    private boolean has_focus = false;
    6263    /** The collection tree. */
    6364    private CollectionTree collection_tree = null;
     
    168169    public void gainFocus()
    169170    {
     171    // Remember that we currently have focus
     172    has_focus = true;
     173
    170174    // Add the collection tree and filter back into this pane
    171175    collection_scroll = new JScrollPane(collection_tree);
     
    199203    collection_pane.remove(collection_scroll);
    200204    collection_pane.remove(collection_filter);
     205
     206    // Remember that we no longer have focus
     207    has_focus = false;
    201208    }
    202209
     
    255262    public void valueChanged(TreeSelectionEvent event)
    256263    {
     264    // If we haven't got focus then it must have been a selection in the Gather pane, so don't bother rebuilding
     265    if (has_focus == false) {
     266        return;
     267    }
     268
    257269    // Nothing selected in the collection tree
    258270    if (collection_tree.getSelectionCount() == 0) {
Note: See TracChangeset for help on using the changeset viewer.