Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
framed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rosi
framed
Commits
5324f91d
Commit
5324f91d
authored
7 years ago
by
nullsub
Browse files
Options
Downloads
Patches
Plain Diff
update constraint checker for all rules
parent
d53424fa
No related branches found
No related tags found
No related merge requests found
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
org.framed.iorm.ui/src/org/framed/iorm/ui/subeditors/FRaMEDFeatureEditor.java
+7
-0
7 additions, 0 deletions
...rc/org/framed/iorm/ui/subeditors/FRaMEDFeatureEditor.java
with
7 additions
and
0 deletions
org.framed.iorm.ui/src/org/framed/iorm/ui/subeditors/FRaMEDFeatureEditor.java
+
7
−
0
View file @
5324f91d
...
@@ -176,6 +176,9 @@ public class FRaMEDFeatureEditor extends EditorPart {
...
@@ -176,6 +176,9 @@ public class FRaMEDFeatureEditor extends EditorPart {
* @param featureModel the feature model to instantiate the configuration with
* @param featureModel the feature model to instantiate the configuration with
*/
*/
private
void
loadConfiguration
(
Model
rootModel
,
IFeatureModel
featureModel
)
{
private
void
loadConfiguration
(
Model
rootModel
,
IFeatureModel
featureModel
)
{
if
(
rootModel
==
null
)
{
return
;
}
FRaMEDConfiguration
framedConfiguration
=
rootModel
.
getFramedConfiguration
();
FRaMEDConfiguration
framedConfiguration
=
rootModel
.
getFramedConfiguration
();
configuration
=
new
Configuration
(
featureModel
);
configuration
=
new
Configuration
(
featureModel
);
configuration
.
getPropagator
().
update
();
configuration
.
getPropagator
().
update
();
...
@@ -277,6 +280,8 @@ public class FRaMEDFeatureEditor extends EditorPart {
...
@@ -277,6 +280,8 @@ public class FRaMEDFeatureEditor extends EditorPart {
* updates the labels text and color if the configuration is valid or not
* updates the labels text and color if the configuration is valid or not
*/
*/
private
void
updateInfoLabel
()
{
private
void
updateInfoLabel
()
{
if
(
configuration
==
null
)
return
;
Boolean
valid
=
configuration
.
isValid
();
Boolean
valid
=
configuration
.
isValid
();
infoLabel
.
setText
(
valid
?
"VALID Configuration"
:
"INVALID Configuration"
);
infoLabel
.
setText
(
valid
?
"VALID Configuration"
:
"INVALID Configuration"
);
infoLabel
.
setForeground
(
valid
?
COLOR_VALID_CONFIGURATION
:
COLOR_INVALID_CONFIGURATION
);
infoLabel
.
setForeground
(
valid
?
COLOR_VALID_CONFIGURATION
:
COLOR_INVALID_CONFIGURATION
);
...
@@ -288,6 +293,8 @@ public class FRaMEDFeatureEditor extends EditorPart {
...
@@ -288,6 +293,8 @@ public class FRaMEDFeatureEditor extends EditorPart {
private
void
updateTree
()
{
private
void
updateTree
()
{
tree
.
removeAll
();
tree
.
removeAll
();
final
TreeItem
root
=
new
TreeItem
(
tree
,
0
);
final
TreeItem
root
=
new
TreeItem
(
tree
,
0
);
if
(
configuration
==
null
)
return
;
final
SelectableFeature
rootFeature
=
configuration
.
getRoot
();
final
SelectableFeature
rootFeature
=
configuration
.
getRoot
();
root
.
setText
(
configuration
.
getRoot
().
getName
());
root
.
setText
(
configuration
.
getRoot
().
getName
());
root
.
setData
(
configuration
.
getRoot
());
root
.
setData
(
configuration
.
getRoot
());
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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