|
Re: customization of label edit of a transition in state diagram [message #1707918 is a reply to message #1707606] |
Thu, 10 September 2015 14:03 |
|
Le 07/09/2015 23:23, Parsa Pourali a écrit :
> Hi,
>
> I'm totally new to Sirius and my question can be relatively stupid ! ;)
>
> I have a transition element in state diagram and when I click on its
> properties and go to the behaviour section, I see there is a Label
> Direct Edit item that tells what should be done in case of a label edit.
> however, I only can select one of the the three options that are already
> there. Can I assign my own class to this behaviour ?
What is a transition element? A node mapping?
What do you mean by "the three options that are already there."?
The behavior tab in properties view is a shortcut to associate tool with
mappings you have defined in the VSM. In properties view for the label
edit tool, you can associate a mapping with "Mapping" field.
>
> Thanks,
> Regards,
> Parsa
Regards
Laurent
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: customization of label edit of a transition in state diagram [message #1712506 is a reply to message #1712157] |
Mon, 26 October 2015 08:42 |
|
Le 21/10/2015 17:02, Parsa Pourali a écrit :
> Hi Laurent,
>
> Not sure if you got my point or not, but assume that in our metamodel there is a transition (for statemachines). What I want to do is to run a particular method when the end user edits the transition. for example, when the user double clicks the transition to edit its label, I want to show a message box to the user.
>
> In the Label Direct Edit I only see three options. How can I put my own method there ?! I have attached an image to make it more clear.
>
> Thanks.
> Best,
> Parsa
>
Hi,
The "three options" correspond to the 3 DirectEditLabel tool defined in
your VSM. If you want to make something special for this mapping, you
have to define a specific DirectEditLabel tool in the tool section and
associate it to the mapping.
Best regards,
--
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.04256 seconds