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/cdm/PluginManager.java

    r8841 r8853  
    136136        // This file will be processed by an assigned plugin, so no suggestion is necessary
    137137        System.err.println("Processed by assigned plugin: " + assigned_plugin);
    138         System.err.println("Explodes metadata databases: " + assigned_plugin.doesExplodeMetadataDatabases());
     138        // System.err.println("Explodes metadata databases: " + assigned_plugin.doesExplodeMetadataDatabases());
    139139        return;
    140140        }
     
    164164    // Generate a dialog
    165165    new PluginSuggestionPrompt(file.getName(), suitable_plugins);
     166    }
     167
     168
     169    public boolean isFileExplodable(File file)
     170    {
     171    // Temporary hack to test the rest of this, the correct code is below
     172    if (file.isFile() && file.getName().endsWith(".mst")) {
     173        return true;
     174    }
     175
     176//  for (int i = 0; i < library.getSize(); i++) {
     177//      Plugin plugin = (Plugin) library.get(i);
     178//      if (plugin.doesProcessFile(file) == true && plugin.doesExplodeMetadataDatabases() == true) {
     179//      return true;
     180//      }
     181//  }
     182
     183    return false;
    166184    }
    167185
Note: See TracChangeset for help on using the changeset viewer.