Changeset 15106 for gli

Show
Ignore:
Timestamp:
20.03.2008 20:12:43 (12 years ago)
Author:
ak19
Message:

To work with new replace_srcdoc_with_html.pl script

Files:
1 modified

Legend:

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

    r10011 r15106  
    4040{ 
    4141    static final public ImageIcon GREEN_FILE_ICON = JarTools.getImage("greenfile.gif", true); 
    42  
     42     
    4343    /** Is this file a metadata database that is explodable with the explode_metadata_databases.pl script? */ 
    4444    private boolean is_explodable = false; 
    4545 
     46    /** Keeps track of whether this file can be replaced with a Greenstone-generated html file. 
     47     * To work with replace_srcdoc_with_html.pl */ 
     48    private boolean is_srcreplaceable = false; 
    4649 
    4750    public CollectionTreeNode(File file) 
     
    5053 
    5154    this.is_explodable = CollectionDesignManager.plugin_manager.isFileExplodable(file); 
     55    // To work with replace_srcdoc_with_html.pl 
     56    this.is_srcreplaceable = CollectionDesignManager.plugin_manager.isFileSrcReplaceable(file); 
    5257    } 
    5358 
     
    6671    return is_explodable; 
    6772    } 
     73 
     74    // To work with replace_srcdoc_with_html.pl 
     75    public boolean isSrcReplaceable() 
     76    { 
     77    return is_srcreplaceable; 
     78    } 
    6879}