public String check(IEObjectDescription input) { if (input instanceof IValidatedEObjectDescription) { final IValidatedEObjectDescription validatedDescription = (IValidatedEObjectDescription) input; JvmIdentifiableElement identifiable = validatedDescription.getEObjectOrProxy(); if (identifiable.eIsProxy()) identifiable = (JvmIdentifiableElement) EcoreUtil.resolve(identifiable, context); String issueCode; if (identifiable.eIsProxy()) issueCode = UNRESOLVABLE_PROXY; else if (!validatedDescription.isValid()) { if (Strings.isEmpty(validatedDescription.getIssueCode())) issueCode = FEATURE_NOT_VISIBLE; else return validatedDescription.getIssueCode(); } else issueCode = dispatcher.invoke(identifiable, context, reference, validatedDescription); validatedDescription.setIssueCode(issueCode); return issueCode; } return null; }
public void modifyClass(Class classToModify, DeltaSubAction modifiesClassAction) { modifyClassDispatcher.invoke(classToModify, modifiesClassAction); }
protected boolean doSemanticFormat( EObject semantic, StyleSet styleSet, IDomNode node, ITextFlow flow, ILayoutContext context) { return formatDispatcher.invoke(semantic, styleSet, node, flow, context); }
protected void doSemanticBefore( EObject semantic, StyleSet styleSet, IDomNode node, ITextFlow flow, ILayoutContext context) { beforeDispatcher.invoke(semantic, styleSet, node, flow, context); }