Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How do I add a SignalEvent trigger?
How do I add a SignalEvent trigger? [message #489705] Mon, 05 October 2009 15:34 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
icon14.gif  Re: How do I add a SignalEvent trigger? [message #489885 is a reply to message #489705] Tue, 06 October 2009 12:12 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
I think that we should use the EclipseUML2 model validation to know if something is acceptable or not.
It works really well Very Happy
I mean that you have a file named .uml in your project which is either related to the full project or just to the diagram. You can click on this file > Model Validation. What is legal in UML 2 is validated at model level using the model validation process. It always work and better than trying graphical model validation.
Using this model validation you will get warnings and errors.

I understand that if you use transformation layers (e.g. EMF or GMF) to get an xmi this could be a problem, but this is not usually what happen because these framework work pretty well too.
Everybody knows my personal point of view saying that the best transformation is no transformation but you can do as you want because all approaches are correct.

Vlad,
Omondo

[Updated on: Tue, 06 October 2009 12:14]

Report message to a moderator

Re: How do I add a SignalEvent trigger? [message #594903 is a reply to message #489705] Tue, 06 October 2009 10:27 Go to previous messageGo to next message
Eclipse UserFriend
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 #594924 is a reply to message #489705] Tue, 06 October 2009 12:12 Go to previous message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
I think that we should use the EclipseUML2 model validation to know if something is acceptable or not.
It works really well :d
I mean that you have a file named .uml in your project which is either related to the full project or just to the diagram. You can click on this file > Model Validation. What is legal in UML 2 is validated at model level using the model validation process. It always work and better than trying graphical model validation.
Using this model validation you will get warnings and errors.

I understand that if you use transformation layers (e.g. EMF or GMF) to get an xmi this could be a problem, but this is not usually what happen because these framework work pretty well too.
Everybody knows my personal point of view saying that the best transformation is no transformation but you can do as you want because all approaches are correct.

Vlad,
Previous Topic:How do I add a SignalEvent trigger?
Next Topic:Re: Papyrus versus UML2tools?
Goto Forum:
  


Current Time: Thu Mar 28 11:32:30 GMT 2024

Powered by FUDForum. Page generated in 0.03481 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top