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

IConstraint -> Constraint, imagedescriptor, ID

refs 2553
parent 0292b681
No related branches found
No related tags found
No related merge requests found
......@@ -17,10 +17,11 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.kernel.ui.extension;
import org.fortiss.tooling.kernel.model.constraints.IConstraint;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.tooling.kernel.extension.IConstraintVerifier;
import org.fortiss.tooling.kernel.model.constraints.Constraint;
import org.fortiss.tooling.kernel.model.constraints.IConstraintContainer;
import org.fortiss.tooling.kernel.model.constraints.IConstraintVerificationStatus;
import org.fortiss.tooling.kernel.service.base.IEObjectAware;
/**
* Interface for the GUI of constraint verifiers.
......@@ -30,7 +31,13 @@ import org.fortiss.tooling.kernel.service.base.IEObjectAware;
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: FF8F3F170CD5768D578035D3803F7470
*/
public interface IConstraintVerifierUI<T extends IConstraint> extends IEObjectAware<T> {
public interface IConstraintVerifierUI {
/**
* Returns the unique identifier of this constraint. Should match the corresponding
* {@link IConstraintVerifier}!
*/
String getID();
/**
* Action to take when trying to open the given constraint. <code>canOpen</code> should be
......@@ -40,16 +47,22 @@ public interface IConstraintVerifierUI<T extends IConstraint> extends IEObjectAw
* @param status
* @return true if the constraint could indeed be open, false if it needs further handling.
*/
public boolean openStatus(T constraint, IConstraintVerificationStatus status);
public boolean openStatus(Constraint constraint, IConstraintVerificationStatus status);
/** True if the constraint can be open. */
boolean canOpen(T constraint, IConstraintVerificationStatus status);
boolean canOpen(Constraint constraint, IConstraintVerificationStatus status);
/** Method to execute when a constraint gets outdated. */
public void onOutdate(T constraint);
public void onOutdate(Constraint constraint);
/** Returns a short user-friendly description explaining the constraint. */
public String getMessage(T constraint, IConstraintVerificationStatus status);
public String getMessage(Constraint constraint, IConstraintVerificationStatus status);
/**
* Set to <code>true</code> if you want your constraint to be displayed as a warning rather than
* as an error.
*/
public boolean displayAsWarning();
/**
* The following features deal with the usage of constraints to drive the process.
......@@ -66,6 +79,9 @@ public interface IConstraintVerifierUI<T extends IConstraint> extends IEObjectAw
/** Gets a general description for the constraint type. */
String getDescription();
/** Returns the image descriptor to be used as icon image. */
public ImageDescriptor getIconImageDescriptor();
/** True if this constraint shall be displayed as a development process constraint. */
boolean isUsableForDevelopmentProcess();
}
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