Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Custom Behaviour with GMF
Custom Behaviour with GMF [message #487802] Thu, 24 September 2009 13:21 Go to next message
Bastian Roth is currently offline Bastian RothFriend
Messages: 19
Registered: September 2009
Junior Member
Hello,

could anybody of you give an easy example of how to use the
CustomBehaviour? I already tried to comprehend this guidance, but it
didn't work for me:
http://www.eclipsecon.org/2007/index.php?page=sub/&id=37 39
I only arrived at the 8th slide and there I fail by creating the
ModifyAttrCommand class, because eclipse advises me to add a constructor
with these three parameters: domain (TransactionalEditingDomain), label
(String) and affectedFiles (List)
But the Constructor shown in the presentation only needs one parameter
attr (EAttribute). So with which values the three parameters must be
initialized (especially the domain)?

thanks,
Bastian
Re: Custom Behaviour with GMF [message #487858 is a reply to message #487802] Thu, 24 September 2009 15:09 Go to previous messageGo to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Bastian Roth schrieb:
> But the Constructor shown in the presentation only needs one parameter
> attr (EAttribute). So with which values the three parameters must be
> initialized (especially the domain)?

Bastian,

there are static helper methods in TransactionUtil called
getEditingDomain for EObjects, Resources etc.
As far as I know you can use that domain. I'm not aware of that file
list. I usually leave it null.

Hauke
Re: Custom Behaviour with GMF [message #488296 is a reply to message #487858] Sun, 27 September 2009 18:43 Go to previous message
Bastian Roth is currently offline Bastian RothFriend
Messages: 19
Registered: September 2009
Junior Member
Thank you Hauke, this solved my problem.

Hauke Fuhrmann schrieb:
> Bastian Roth schrieb:
>> But the Constructor shown in the presentation only needs one parameter
>> attr (EAttribute). So with which values the three parameters must be
>> initialized (especially the domain)?
>
> Bastian,
>
> there are static helper methods in TransactionUtil called
> getEditingDomain for EObjects, Resources etc.
> As far as I know you can use that domain. I'm not aware of that file
> list. I usually leave it null.
>
> Hauke
Previous Topic:Error with taipan genmodel
Next Topic:Spontaneous Validation: how to add custom markers and problems?
Goto Forum:
  


Current Time: Fri Apr 19 02:29:18 GMT 2024

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

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

Back to the top