Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
AF3
Commits
405435d5
Commit
405435d5
authored
Oct 26, 2017
by
Tatiana Chuprina
Browse files
RED
refs 3122
parent
e6c2764a
Changes
2
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.mira/trunk/src/org/fortiss/af3/mira/AF3MiraActivator.java
View file @
405435d5
...
...
@@ -70,7 +70,8 @@ public class AF3MiraActivator extends Plugin {
public
void
start
(
BundleContext
context
)
throws
Exception
{
super
.
start
(
context
);
plugin
=
this
;
// TODO (TC, 25) - all IConstraintService.getInstance()
// TODO duplicated IConstraintService.getInstance().registerConstraint
RelationTypeService
rts
=
(
RelationTypeService
)
IRelationTypeService
.
getInstance
();
rts
.
initializeService
();
rts
.
startService
();
...
...
org.fortiss.af3.mira/trunk/src/org/fortiss/af3/mira/compose/SignalsContainerCompositor.java
View file @
405435d5
...
...
@@ -63,13 +63,16 @@ public class SignalsContainerCompositor implements IElementCompositor<ISignalsCo
IElementCompositionContext
context
)
{
if
(
contained
instanceof
Signal
)
{
Signal
signal
=
(
Signal
)
contained
;
// TODO (TC, 25)
List
<
String
>
containerNames
=
container
.
getSignals
().
stream
().
map
(
c
->
c
.
getName
().
toLowerCase
())
.
collect
(
Collectors
.
toList
());
if
(
containerNames
.
contains
(
signal
.
getName
().
toLowerCase
()))
{
// TODO (TC, 25)
Status
status
=
new
Status
(
ERROR
,
ToolingBaseUIActivator
.
PLUGIN_ID
,
0
,
"A signal with this name already exists."
,
null
);
// TODO (TC, 25)
openError
(
Display
.
getCurrent
().
getActiveShell
(),
"Error"
,
null
,
status
);
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment