Skip to content
Snippets Groups Projects
Commit b16bd7dc authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

better distinction between constraints which are always activated and those...

better distinction between constraints which are always activated and those which should be activated manually
refs 2620
parent fa2e179c
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ import org.fortiss.tooling.kernel.ui.internal.ConstraintVerificationUIService;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 92BF2876D85EB9FBFB9E7F803BB39A02
* @ConQAT.Rating YELLOW Hash: 0A27D78DB4D8A5B1B3BD4E7074DDE897
*/
public interface IConstraintVerificationUIService {
/** Returns the service instance. */
......@@ -43,11 +43,17 @@ public interface IConstraintVerificationUIService {
*/
boolean shallDisplayAsWarning(Constraint constraint);
/** Returns a description for the given constraint type. */
String getDescription(String id);
/** Returns the image descriptor to be used as icon image. */
ImageDescriptor getIconImageDescriptor(String id);
/**
* The following features deal with the usage of constraints to drive the process.
*
* EXPERIMENTAL.
* Browse the elements in the context of the given container, adds constraints if relevant and
* install them.
*/
void addMissingConstraints(IConstraintContainer cstrContainer);
/**
* Returns the status of the constraint, possibly returns <code>null</code> if the constraint is
......@@ -56,7 +62,10 @@ public interface IConstraintVerificationUIService {
IConstraintVerificationStatus getStatus(Constraint constraint);
/** Returns a list of all available constraint types. */
Set<String> getAvailableConstraintTypes();
Set<String> getAllConstraintTypes();
/** Returns a list of constraint types which should always be activated. */
Set<String> getAlwaysActivatedConstraintTypes();
/** Returns a list of all constraint types which are activated for the given top element. */
Set<String> getActivatedConstraintTypes(ITopLevelElement top);
......@@ -66,16 +75,4 @@ public interface IConstraintVerificationUIService {
/** Deactivates the constraint type in the context of the given constraints container. */
void deactivate(String id, IConstraintContainer cstrContainer);
/** Returns a description for the given constraint type. */
String getDescription(String id);
/** Returns the image descriptor to be used as icon image. */
ImageDescriptor getIconImageDescriptor(String id);
/**
* Browse the elements in the context of the given container, adds constraints if relevant and
* install them.
*/
void addMissingConstraints(IConstraintContainer cstrContainer);
}
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