Code example for Node

Methods: getNodeName

0
	 */ 
	public IHyperlink createHyperlink(String name, String target, Node node, Node parentNode,
			IDocument document, ITextViewer textViewer, IRegion hyperlinkRegion, IRegion cursor) {
		String parentName = null;
		if (parentNode != null) {
			parentName = parentNode.getNodeName();
		} 
 
		List<String> propertyPaths = new ArrayList<String>();
		hyperlinkRegion = BeansEditorUtils.extractPropertyPathFromCursorPosition(hyperlinkRegion,
				cursor, target, propertyPaths);
		if ("bean".equals(parentName)) {
			IFile file = BeansEditorUtils.getFile(document);
			 
			List<IType> classes = new ArrayList<IType>();
 
			String className = BeansEditorUtils.getClassNameForBean(file, node.getOwnerDocument(), parentNode);
			if (file != null && file.exists()) {
				IType type = JdtUtils.getJavaType(file.getProject(), className);
				if (type != null) {
					classes.add(type);
				}