}
@Override
public IDefinition getDefinition()
{
ICommonClassNode decoratedClassNode =
(ICommonClassNode)getAncestorOfType(ICommonClassNode.class);
if (decoratedClassNode == null)
return null;
IClassDefinition decoratedClassDefinition = decoratedClassNode.getDefinition();
assert decoratedClassDefinition != null;
IWorkspace workspace = getWorkspace();
return decoratedClassDefinition.getEventDefinition(workspace, getName());
}