Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » few questions
few questions [message #227201] Thu, 23 April 2009 15:03 Go to next message
Ali Koudri is currently offline Ali KoudriFriend
Messages: 118
Registered: July 2009
Senior Member
Hi,

I have few questions about gmf code generation:

Is it possible to customize the gmfgen model to choose the name of the
generated plugin project ? It seems that I can only choose the packages
base name.
I am currently building several views for one model, sharing the same
editing domain. Everything works fine but when I create a new diagram,
it is automatically populated with elements contained at the root
element, is there any way to prevent it ?

Regards.
Re: few questions [message #227223 is a reply to message #227201] Thu, 23 April 2009 15:21 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi exquisitus,

To change plugin generated plugin id you can change ID property of your
gmfgen on Gen Plugin node.
About elements contained in your diagram at startup look at
XXXDiagramEditorUtil.createInitialModel() .



exquisitus a écrit :
> Hi,
>
> I have few questions about gmf code generation:
>
> Is it possible to customize the gmfgen model to choose the name of the
> generated plugin project ? It seems that I can only choose the packages
> base name.
> I am currently building several views for one model, sharing the same
> editing domain. Everything works fine but when I create a new diagram,
> it is automatically populated with elements contained at the root
> element, is there any way to prevent it ?
>
> Regards.
Re: few questions [message #227293 is a reply to message #227223] Thu, 23 April 2009 20:08 Go to previous message
Ali Koudri is currently offline Ali KoudriFriend
Messages: 118
Registered: July 2009
Senior Member
Thx for the fast answer Esteban,

changing the ID works (although we could imagine having an ID different
from the project's name). But the second tip doesn't work. Actually,
since I call my wizard on a model element, I don't call this method at
all. My problem is when i set the content of a diagram providing a model
element, the diagram is initialized with all edit parts corresponding to
the chidren of that model element. All I want is an empty diagram and to
have the ability to drag and drop only children I want to display.
Maybe I am not so clear, am I ?

Regards.

Esteban DUGUEPEROUX a écrit :
> Hi exquisitus,
>
> To change plugin generated plugin id you can change ID property of your
> gmfgen on Gen Plugin node.
> About elements contained in your diagram at startup look at

> XXXDiagramEditorUtil.createInitialModel() .
>
>
>
> exquisitus a écrit :
>> Hi,
>>
>> I have few questions about gmf code generation:
>>
>> Is it possible to customize the gmfgen model to choose the name of the
>> generated plugin project ? It seems that I can only choose the
>> packages base name.
>> I am currently building several views for one model, sharing the same
>> editing domain. Everything works fine but when I create a new diagram,
>> it is automatically populated with elements contained at the root
>> element, is there any way to prevent it ?
>>
>> Regards.
Previous Topic:return to the line
Next Topic:Headless template expansion
Goto Forum:
  


Current Time: Mon Nov 20 21:22:32 GMT 2017

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

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