How do I add a SignalEvent trigger? [message #489705] |
Mon, 05 October 2009 15:34 |
Eclipse User |
|
|
|
Originally posted by: Michael.Zapf.uni-kassel.de
Hello,
just doing my first steps in Papyrus. With Papyrus it seems as if I
finally found my tool for my MDD endeavours. :-)
I already mastered the first hurdle, i.e. to find out how to set up a
State Machine diagram (it's not really obvious that you can only create
it as an ownedBehaviour of a classifier when you come from UML2tools).
My current problem is that I want to set a SignalEvent as a trigger for
a transition, but the menu item is grey. The other events are
accessible. How can I make use of a SignalEvent trigger?
Greetings,
Michael
|
|
|
Re: How do I add a SignalEvent trigger? [message #489866 is a reply to message #489705] |
Tue, 06 October 2009 10:27 |
Eclipse User |
|
|
|
Originally posted by: Michael.Zapf.uni-kassel.de
Solved my problem:
> My current problem is that I want to set a SignalEvent as a trigger for
> a transition, but the menu item is grey. The other events are
> accessible. How can I make use of a SignalEvent trigger?
("Use the source, Luke.")
TriggersComposite.java:
if((behavioredClassifier instanceof org.eclipse.uml2.uml.Class) &&
((org.eclipse.uml2.uml.Class)behavioredClassifier).isActive( ))
signalEventItem.setEnabled(true);
Would be nice if that became somewhat more obvious while working with
the program. Probably one should not disable the item but pop up a
warning dialog.
It does make sense to adapt the selection menus so you can't do silly
things, but the problem is who knows all those details of UML? And if
you don't know there is no way to find out why something does not work
for you except to get the spec and read various bits and then try until
it works.
Michael
|
|
|
|
Re: How do I add a SignalEvent trigger? [message #594903 is a reply to message #489705] |
Tue, 06 October 2009 10:27 |
Eclipse User |
|
|
|
Originally posted by: Michael.Zapf.uni-kassel.de
Solved my problem:
> My current problem is that I want to set a SignalEvent as a trigger for
> a transition, but the menu item is grey. The other events are
> accessible. How can I make use of a SignalEvent trigger?
("Use the source, Luke.")
TriggersComposite.java:
if((behavioredClassifier instanceof org.eclipse.uml2.uml.Class) &&
((org.eclipse.uml2.uml.Class)behavioredClassifier).isActive( ))
signalEventItem.setEnabled(true);
Would be nice if that became somewhat more obvious while working with
the program. Probably one should not disable the item but pop up a
warning dialog.
It does make sense to adapt the selection menus so you can't do silly
things, but the problem is who knows all those details of UML? And if
you don't know there is no way to find out why something does not work
for you except to get the spec and read various bits and then try until
it works.
Michael
|
|
|
|
Powered by
FUDForum. Page generated in 0.03481 seconds