4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.54 $ |
* @version $Revision: 1.55 $ |
* |
* Last modification: $Date: 2003/07/24 14:19:48 $ |
* $Id: PluginManager.java,v 1.54 2003/07/24 14:19:48 smcsporr Exp $ |
* Last modification: $Date: 2003/07/24 19:19:27 $ |
* $Id: PluginManager.java,v 1.55 2003/07/24 19:19:27 smcsporr Exp $ |
*/ |
|
package src.plugins; |
56,7 → 56,7 |
* |
* @author Sascha Walkenhorst |
* |
* @version $Revision: 1.54 $ Last modification: $Date: 2003/07/24 14:19:48 $ |
* @version $Revision: 1.55 $ Last modification: $Date: 2003/07/24 19:19:27 $ |
*/ |
public class PluginManager implements TreeSelectionListener, |
PluginManagerInterface, |
913,7 → 913,7 |
* |
* Last Revision: 06-Jul-2003 by Sascha W. |
*/ |
private String getAssociatedPlugin(String element) { |
public String getAssociatedPlugin(String element) { |
String linkedTo = null; |
|
/* test whether pluginAssociations has entries so it can be used */ |
1297,5 → 1297,25 |
listVariables(); |
} |
} |
|
/** |
* Transforms given node for specified plugin |
* |
* @param associatedPlugin name of associated plugin for the node |
* @param node the node |
* @return the transformed node |
* |
* autor Y.Klassen, V.Zudova |
*/ |
public Node transformsNode(String associatedPlugin, Node node) |
{ |
/* case: no default plugin has been selected -> break up*/ |
if (associatedPlugin == null) return null; |
|
/* get the transformer needed for transformation of node for the associated plugin */ |
OurTransformer transformer = (OurTransformer) ((Hashtable) plugins.get(associatedPlugin)).get("xslTo"); |
|
return transformer.transformNode(node); |
} |
|
} |