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
543631a6
Commit
543631a6
authored
8 years ago
by
Vincent Aravantinos
Browse files
Options
Downloads
Patches
Plain Diff
IConstraint -> Constraint, imagedescriptor, ID
refs 2553
parent
7a3b0e4c
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/service/IConstraintVerificationUIService.java
+21
-14
21 additions, 14 deletions
...g/kernel/ui/service/IConstraintVerificationUIService.java
with
21 additions
and
14 deletions
org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/service/IConstraintVerificationUIService.java
+
21
−
14
View file @
543631a6
...
...
@@ -2,7 +2,8 @@ package org.fortiss.tooling.kernel.ui.service;
import
java.util.Set
;
import
org.fortiss.tooling.kernel.model.constraints.IConstraint
;
import
org.eclipse.jface.resource.ImageDescriptor
;
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.IConstraintVerificationService
;
...
...
@@ -15,7 +16,7 @@ import org.fortiss.tooling.kernel.ui.internal.ConstraintVerificationUIService;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash:
088353619375F645ACA70AD1C2990CE1
* @ConQAT.Rating YELLOW Hash:
D385AA84897DCC95B76AA13E0A351ED2
*/
public
interface
IConstraintVerificationUIService
{
/** Returns the service instance. */
...
...
@@ -24,17 +25,22 @@ public interface IConstraintVerificationUIService {
}
/** Action to take when trying to open the (status of the given) constraint. */
void
openStatus
(
I
Constraint
c
);
void
openStatus
(
Constraint
c
);
/** True if the (status of the) the given constraint can be open. */
boolean
canOpen
(
I
Constraint
c
);
boolean
canOpen
(
Constraint
c
);
/** Install the given constraint: install notifiers and triggers an "onOutdate" event. */
void
install
(
I
Constraint
constraint
);
void
install
(
Constraint
constraint
);
/** Registers the verifier UI part with the kernel. */
<
T
extends
IConstraint
>
void
registerConstraintVerifierUI
(
IConstraintVerifierUI
<
T
>
verifier
,
Class
<
T
>
constraintElementClass
);
void
registerConstraintVerifierUI
(
IConstraintVerifierUI
verifier
);
/**
* True if a failure of the given constraint shall be displayed as a warning instead of an
* error.
*/
boolean
shallDisplayAsWarning
(
Constraint
constraint
);
/**
* The following features deal with the usage of constraints to drive the process.
...
...
@@ -46,19 +52,20 @@ public interface IConstraintVerificationUIService {
* Returns the status of the constraint, possibly returns <code>null</code> if the constraint is
* not activated.
*/
IConstraintVerificationStatus
getStatus
(
I
Constraint
constraint
);
IConstraintVerificationStatus
getStatus
(
Constraint
constraint
);
/** Returns a list of all available constraint types. */
Set
<
Class
<
ICons
tr
a
in
t
>
>
getAvailableConstraintTypes
();
Set
<
S
trin
g
>
getAvailableConstraintTypes
();
/** Activates the constraint type in the context of the given constraints container. */
<
T
extends
IConstraint
>
void
activate
(
Class
<
T
>
constraintType
,
IConstraintContainer
cstrContainer
);
void
activate
(
String
id
,
IConstraintContainer
cstrContainer
);
/** Deactivates the constraint type in the context of the given constraints container. */
<
T
extends
IConstraint
>
void
deactivate
(
Class
<
T
>
constraintType
,
IConstraintContainer
cstrContainer
);
void
deactivate
(
String
id
,
IConstraintContainer
cstrContainer
);
/** Returns a description for the given constraint type. */
<
T
extends
IConstraint
>
String
getDescription
(
Class
<
T
>
constraintType
);
String
getDescription
(
String
id
);
/** Returns the image descriptor to be used as icon image. */
ImageDescriptor
getIconImageDescriptor
(
String
id
);
}
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