4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.34 $ |
* @version $Revision: 1.35 $ |
* |
* Last modification: $Date: 2003/07/28 12:25:59 $ |
* $Id: RegionEditorPlugin.java,v 1.34 2003/07/28 12:25:59 cstollen Exp $ |
* Last modification: $Date: 2003/07/28 12:37:21 $ |
* $Id: RegionEditorPlugin.java,v 1.35 2003/07/28 12:37:21 cstollen Exp $ |
*/ |
|
package src.plugins.regionEditorPlugin; |
62,7 → 62,7 |
* |
* @author Yulia Klassen, Viktoriya Zudova |
* |
* @version $Revision: 1.34 $ Last modification: $Date: 2003/07/28 12:25:59 $ |
* @version $Revision: 1.35 $ Last modification: $Date: 2003/07/28 12:37:21 $ |
*/ |
public class RegionEditorPlugin |
extends JPanel |
265,11 → 265,8 |
// check elements only |
if(!(node instanceof Element)) return null; |
|
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) { |
// if this node represents an image, check image name |
if(node != null && node.getNodeName().equals("IMAGE")) { |
NamedNodeMap nodeAttr = node.getAttributes(); |
String name = nodeAttr.getNamedItem("name").getNodeValue(); |
String url = nodeAttr.getNamedItem("url").getNodeValue(); |
277,7 → 274,6 |
// 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 |