Skip to content
Snippets Groups Projects
Commit 8f5fee6d authored by Florian Hölzl's avatar Florian Hölzl
Browse files

Provided register method for constraint checker service.

refs 2590
parent 0d5ceca3
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
<meta.schema plugin="org.fortiss.tooling.kernel" id="modelElementConstraintChecker" name="Model Element Constraint Checker"/>
</appinfo>
<documentation>
Registers a constraint checker for model elements.
DEPRECATED use IConstraintCheckerService.registerConstraintChecker() instead.
</documentation>
</annotation>
......
......@@ -64,6 +64,13 @@ public class ConstraintCheckerService extends EObjectAwareServiceBase<IConstrain
KernelIntrospectionSystemService.getInstance().registerService(this);
}
/** {@inheritDoc} */
@Override
public void registerConstraintChecker(IConstraintChecker<EObject> checker,
Class<?> modelElementClass) {
addHandler(modelElementClass, checker);
}
/** {@inheritDoc} */
@Override
public String getIntrospectionDescription() {
......
......@@ -52,6 +52,9 @@ public interface IConstraintCheckerService {
return INSTANCE;
}
/** Registers the given constraint checker with the service. */
void registerConstraintChecker(IConstraintChecker<EObject> checker, Class<?> modelElementClass);
/**
* Performs all constraint checks on the given model element and recursively
* its content and returns the check results. Note, that this method can be
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment