Changeset 4481


Ignore:
Timestamp:
2003-06-05T10:49:29+12:00 (21 years ago)
Author:
mdewsnip
Message:

Saving collections no longer causes the metadata tables to be rebuilt (once for every metadata set loaded). This caused the metadata table to flicker annoyingly. Hopefully this will also fix an intermittent NPE when exiting the Gatherer.

File:
1 edited

Legend:

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

    r4477 r4481  
    258258     * @param set The MetadataSet thats changed.
    259259     */
    260     public void fireSetChanged(MetadataSet set) {
     260    private void fireSetChanged(MetadataSet set) {
    261261    // Create a new MSMEvent, with a MSMAction containing only the new set.
    262262    MSMEvent event = new MSMEvent(this, 0L, new MSMAction(set.toString(), null, -1, null));
     
    917917        }
    918918        else {
    919             mds_file = new File(file, "greenstone.mds");
     919            mds_file = new File(file, Utility.METADATA_EXTRACTED);
    920920        }
    921921        Utility.export(set.getDocument(), mds_file);
     
    939939            }
    940940        }
    941         // Note that filenames might have changed so we better warn everyone.
    942         fireSetChanged(set);
    943941        }
    944942        catch (Exception error) {
Note: See TracChangeset for help on using the changeset viewer.