Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » [Diagram partioning] Palette tool problem
[Diagram partioning] Palette tool problem [message #176569] Tue, 11 March 2008 09:05 Go to next message
BLANC Philippe is currently offline BLANC PhilippeFriend
Messages: 89
Registered: July 2009
Member
Hi,
I would lilke to partition my mdel : an element A contains a elemnt B.
When users double-click on element A, a new diagram is displayed with a
new palette for the element B.

I have followed the tutorial at this url :
http://wiki.eclipse.org/Diagram_Partitioning, but not the step 6 of this
tutorial.

My problem is when I double-click on the A element, a new diagram is
created, but with the palette of the element A. So, I can't create B
elements since they are not represented in this palette.

My project contains :
- globalModel.ecore, globalModel.genmodel
- elementA.gmfgraph, elementA.gmftool, elementA.gmfmap, elementA.gmfgen.
- elementB.gmfgraph, elementB.gmftool, elementB.gmfmap, elementB.gmfgen.

SO, when I generate code, I have 4-new-projects : edit diagram, editor
diagram, element A diagram and element B diagram.

Any ideas ?

Thanks for your help.

Best regards,
Philippe
Re: [Diagram partioning] Palette tool problem [message #176606 is a reply to message #176569] Tue, 11 March 2008 10:10 Go to previous messageGo to next message
BLANC Philippe is currently offline BLANC PhilippeFriend
Messages: 89
Registered: July 2009
Member
I found my problem.
It seems that I need only one .gmfgraph file.
I have taken a look at the Taipan example to perform my editor.



Philippe BLANC a écrit :
> Hi,
> I would lilke to partition my mdel : an element A contains a elemnt B.
> When users double-click on element A, a new diagram is displayed with a
> new palette for the element B.
>
> I have followed the tutorial at this url :
> http://wiki.eclipse.org/Diagram_Partitioning, but not the step 6 of this
> tutorial.
>
> My problem is when I double-click on the A element, a new diagram is
> created, but with the palette of the element A. So, I can't create B
> elements since they are not represented in this palette.
>
> My project contains :
> - globalModel.ecore, globalModel.genmodel
> - elementA.gmfgraph, elementA.gmftool, elementA.gmfmap, elementA.gmfgen.
> - elementB.gmfgraph, elementB.gmftool, elementB.gmfmap, elementB.gmfgen.
>
> SO, when I generate code, I have 4-new-projects : edit diagram, editor
> diagram, element A diagram and element B diagram.
>
> Any ideas ?
>
> Thanks for your help.
>
> Best regards,
> Philippe
Re: [Diagram partioning] Palette tool problem [message #176650 is a reply to message #176606] Tue, 11 March 2008 12:44 Go to previous message
BLANC Philippe is currently offline BLANC PhilippeFriend
Messages: 89
Registered: July 2009
Member
One more question.
When I double-click on my element A, a new diagram is opened.
If I take a look at the *.[model]_diagram with the Project Explorer
view, there is no B element. Is it normal ?
Moreover, my *.[model] contains two identical root elements with the
same elements....



Philippe BLANC a écrit :
> I found my problem.
> It seems that I need only one .gmfgraph file.
> I have taken a look at the Taipan example to perform my editor.
>
>
>
> Philippe BLANC a écrit :
>> Hi,
>> I would lilke to partition my mdel : an element A contains a elemnt B.
>> When users double-click on element A, a new diagram is displayed with
>> a new palette for the element B.
>>
>> I have followed the tutorial at this url :
>> http://wiki.eclipse.org/Diagram_Partitioning, but not the step 6 of
>> this tutorial.
>>
>> My problem is when I double-click on the A element, a new diagram is
>> created, but with the palette of the element A. So, I can't create B
>> elements since they are not represented in this palette.
>>
>> My project contains :
>> - globalModel.ecore, globalModel.genmodel
>> - elementA.gmfgraph, elementA.gmftool, elementA.gmfmap,
>> elementA.gmfgen.
>> - elementB.gmfgraph, elementB.gmftool, elementB.gmfmap,
>> elementB.gmfgen.
>>
>> SO, when I generate code, I have 4-new-projects : edit diagram, editor
>> diagram, element A diagram and element B diagram.
>>
>> Any ideas ?
>>
>> Thanks for your help.
>>
>> Best regards,
>> Philippe
Previous Topic:Refresh Layout of a View
Next Topic:Using Different Model & Diagram File
Goto Forum:
  


Current Time: Thu Mar 28 14:28:29 GMT 2024

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

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

Back to the top