Changeset 9127


Ignore:
Timestamp:
2005-02-22T11:01:35+13:00 (19 years ago)
Author:
kjdon
Message:

PluginManager.getExploderPlugin now returns a Plugin rather than the name string

File:
1 edited

Legend:

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

    r9104 r9127  
    3939import org.greenstone.gatherer.Gatherer;
    4040import org.greenstone.gatherer.cdm.CollectionDesignManager;
     41import org.greenstone.gatherer.cdm.Plugin;
    4142import org.greenstone.gatherer.gui.tree.DragTree;
    4243import org.greenstone.gatherer.metadata.MetadataXMLFileManager;
     
    7273   
    7374    // check that we actually have an explodable file
    74     plugin_name = CollectionDesignManager.plugin_manager.getExploderPlugin(source_file);
    75     if (plugin_name==null) {
     75    Plugin plugin = CollectionDesignManager.plugin_manager.getExploderPlugin(source_file);
     76    if (plugin==null) {
    7677        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("ExplodeMetadataPrompt.NotExplodable"), Dictionary.get("ExplodeMetadataPrompt.Title"), JOptionPane.ERROR_MESSAGE);
    7778        return;
    7879    }
     80    plugin_name = plugin.getName();
    7981    setJMenuBar(new SimpleMenuBar("explodingmetadata"));
    8082    setSize(SIZE);
Note: See TracChangeset for help on using the changeset viewer.