Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » customization of label edit of a transition in state diagram
customization of label edit of a transition in state diagram [message #1707606] Mon, 07 September 2015 21:23 Go to next message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
Hi,

I'm totally new to Sirius and my question can be relatively stupid ! Wink

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 ?

Thanks,
Regards,
Parsa
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 Go to previous messageGo to next message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 174
Registered: October 2014
Senior Member
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 #1712157 is a reply to message #1707918] Wed, 21 October 2015 15:02 Go to previous messageGo to next message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
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
  • Attachment: Untitled.png
    (Size: 72.13KB, Downloaded 117 times)
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 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 267
Registered: July 2009
Senior Member
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
Previous Topic:Select edges tree
Next Topic:How Sirius finds the corresponding metamodel?
Goto Forum:
  


Current Time: Mon Jan 25 08:19:01 GMT 2021

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

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

Back to the top