Code example for Node

Methods: getOwnerDocument

0
			String ref = BeansEditorUtils.getAttribute(parentNode, "ref");
 
			if (ref != null) {
				IFile file = BeansEditorUtils.getFile(document);
				String className = BeansEditorUtils.getClassNameForBean(file, node
						.getOwnerDocument(), ref);
				if (file != null && file.exists()) {
					return JdtUtils.getJavaType(file.getProject(), className);
				} 
			} 
		} 
		return null; 
	} 
 
}