4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.35 $ |
* @version $Revision: 1.34 $ |
* |
* Last modification: $Date: 2003/07/28 12:37:21 $ |
* $Id: RegionEditorPlugin.java,v 1.35 2003/07/28 12:37:21 cstollen Exp $ |
* Last modification: $Date: 2003/07/28 12:25:59 $ |
* $Id: RegionEditorPlugin.java,v 1.34 2003/07/28 12:25:59 cstollen Exp $ |
*/ |
|
package src.plugins.regionEditorPlugin; |
62,7 → 62,7 |
* |
* @author Yulia Klassen, Viktoriya Zudova |
* |
* @version $Revision: 1.35 $ Last modification: $Date: 2003/07/28 12:37:21 $ |
* @version $Revision: 1.34 $ Last modification: $Date: 2003/07/28 12:25:59 $ |
*/ |
public class RegionEditorPlugin |
extends JPanel |
265,8 → 265,11 |
// check elements only |
if(!(node instanceof Element)) return null; |
|
// if this node represents an image, check image name |
if(node != null && node.getNodeName().equals("IMAGE")) { |
String associatedPlugin = manager.getAssociatedPlugin(node.getNodeName()); |
|
// if this node corresponds to the image viewer - check image name |
if(associatedPlugin != null && associatedPlugin.equals("ImageViewer")) { |
if(node != null) { |
NamedNodeMap nodeAttr = node.getAttributes(); |
String name = nodeAttr.getNamedItem("name").getNodeValue(); |
String url = nodeAttr.getNamedItem("url").getNodeValue(); |
274,6 → 277,7 |
// if the name matchs the image name we are looking for and |
// the image has an URL - return the URL |
if(name != null && name.equals(imageName) && url != null) return url; |
} |
} |
|
// if nothing found - try the children |