Ignore:
Timestamp:
2004-12-17T16:50:46+13:00 (19 years ago)
Author:
mdewsnip
Message:

Initial work on allowing metadata databases to be exploded from within the GLI. These are marked with a different icon in the collection tree and a new item is added to the right-click menu for these files. Clicking this will eventually run the explode_metadata_databases.pl script to explode these files.

File:
1 edited

Legend:

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

    r8783 r8853  
    2929
    3030import java.io.*;
     31import javax.swing.*;
     32import org.greenstone.gatherer.cdm.CollectionDesignManager;
    3133import org.greenstone.gatherer.file.FileNode;
     34import org.greenstone.gatherer.util.Utility;
    3235
    3336
     
    3639    extends FileNode
    3740{
     41    static final public ImageIcon GREEN_FILE = Utility.getImage("greenfile.gif", true);
     42
     43    /** Is this file a metadata database that is explodable with the explode_metadata_databases.pl script? */
     44    private boolean is_explodable = false;
     45
     46
    3847    public CollectionTreeNode(File file)
    3948    {
    4049    super(file);
     50
     51    this.is_explodable = CollectionDesignManager.plugin_manager.isFileExplodable(file);
    4152    }
    4253
     
    4960    return child_node;
    5061    }
     62
     63
     64    public boolean isExplodable()
     65    {
     66    return is_explodable;
     67    }
    5168}
Note: See TracChangeset for help on using the changeset viewer.