Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
af3
kernel
Commits
80ca4169
Commit
80ca4169
authored
8 years ago
by
Vincent Aravantinos
Browse files
Options
Downloads
Patches
Plain Diff
IConstraint -> Constraint, imagedescriptor, ID
refs 2553
parent
0292b681
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/extension/IConstraintVerifierUI.java
+23
-7
23 additions, 7 deletions
...ss/tooling/kernel/ui/extension/IConstraintVerifierUI.java
with
23 additions
and
7 deletions
org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/extension/IConstraintVerifierUI.java
+
23
−
7
View file @
80ca4169
...
...
@@ -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
();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment