/** * Helper method to determine if this node is the name node of a definition. * * @return true if this Node is the Name node of a definition */ private boolean isNameNode() { IDefinitionNode parent = getParentAsDefinition(); if (parent != null) { if (parent.getNameExpressionNode() == this) return true; } return false; }
/** * Helper method to determine if this node is the name node of a definition. * * @return true if this Node is the Name node of a definition */ private boolean isNameNode() { IDefinitionNode parent = getParentAsDefinition(); if (parent != null) { if (parent.getNameExpressionNode() == this) return true; } return false; }
BaseDefinitionNode defNode = getParentAsDefinition(); name = defNode.getDefinition().getMName(project);
BaseDefinitionNode defNode = getParentAsDefinition(); name = defNode.getDefinition().getMName(project);
IDefinitionNode defNode = getParentAsDefinition(); if (defNode != null) result = defNode.getDefinition();
IDefinitionNode defNode = getParentAsDefinition(); if (defNode != null) result = defNode.getDefinition();