Code example for Element

Methods: getOwnerDocument, getParentNode, getTagName

0
			else if (region instanceof Attr) {
				elem = ((Attr) region).getOwnerElement();
			} 
			 
			if (elem != null) {
				if (elem.getOwnerDocument() instanceof IDOMDocument) {
					if ("property".equals(elem.getTagName())
							|| "constructor-arg".equals(elem.getTagName())) {
						processNode(model, elem);
					} 
					else if ("ref".equals(elem.getTagName())
							|| "value".equals(elem.getTagName())) {
						processNode(model, (Element) elem.getParentNode());
					} 
				} 
			} 
		} 
	} 
 
	private void processNode(IStructuredModel model, Element elem) {
		model.beginRecording(this);