Code example for NamedNodeMap

Methods: getNamedItem

0
	private IDOMElement selectedBean;
 
	private IFile selectedFile;
 
	private boolean matchAndSelect(String beanValue, String attributeName, NamedNodeMap attributes, Node beanNode) {
		Node attributeNode = attributes.getNamedItem(attributeName);
		if (attributeNode == null) {
			return false; 
		} 
 
		if (beanValue != null && beanValue.equals(attributeNode.getNodeValue())) {
			if (beanNode instanceof IDOMElement) {
				selectedBean = (IDOMElement) beanNode;
			} 
		} 
		return true; 
	} 
 
	@Override 
	public void run() { 
		Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();