Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » diagram partitioning in taipan example
diagram partitioning in taipan example [message #129448] Thu, 24 May 2007 09:14 Go to next message
Eclipse UserFriend
Hello

I need diagram partitioning for my editor but am facing some problems.
At first i tried to define separate .gmfgraph .gmftool and .gmfmap files for both the "master" editor and the "detail"
editor which should open when double-clicking some node.
This worked, but as I had two separate .gmfgen files which I generated into separate plugins, some code was duplicated.
The model content navigator also duplicated all nodes, so I didn't have the feeling that this was the right way to go.

Then I studied the taipan example. I discovered some differences between the M6 and M7 version.
The former had 2 .gmfmap files, one for taipan and the other for the port (and also a separate .gmftool).
In the new M7 version there is only a single taipan.gmfmap (without any relatedDiagrams tag pointing to port).
But there is a port.gmfgen which I have no idea about how it got created/generated.

Could someone please explain, how this port generator model was created from the taipan.gmfmap?
By now I know how to set relatedDiagrams and how to manipulate the OpenDiagramBehaviour.
But I don't know how to get 2 generator models out of one mapping.

If I get it right I plan on writing some kind of "cookbook" for diagram partitioning to share my results, because I
think documentation on diagram partitioning is needed badly.
So any help is appreciated...

Norbert Schöpke
Re: diagram partitioning in taipan example [message #129488 is a reply to message #129448] Thu, 24 May 2007 10:09 Go to previous messageGo to next message
Eclipse UserFriend
I just realized the taipan example also contains duplicate code. For instance the PortEditPart is contained in the
org.eclipse.gmf.examples.taipan.gmf.editor plugin in the package org.eclipse.gmf.examples.taipan.gmf.editor.edit.parts
as well as in the org.eclipse.gmf.examples.taipan.port.diagram plugin in the
org.eclipse.gmf.examples.taipan.port.diagram.edit.parts package.
Is this intentional? I'm surprised GMF doesn't get any hickups because of this...
Re: diagram partitioning in taipan example [message #129557 is a reply to message #129488] Thu, 24 May 2007 11:11 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

They are two very different editparts actually... First for node and
second for diagram.

Norbert Schöpke wrote:
> I just realized the taipan example also contains duplicate code. For instance the PortEditPart is contained in the
> org.eclipse.gmf.examples.taipan.gmf.editor plugin in the package org.eclipse.gmf.examples.taipan.gmf.editor.edit.parts
> as well as in the org.eclipse.gmf.examples.taipan.port.diagram plugin in the
> org.eclipse.gmf.examples.taipan.port.diagram.edit.parts package.
> Is this intentional? I'm surprised GMF doesn't get any hickups because of this...
Previous Topic:GMF Undo/Redo
Next Topic:Property Value update problem
Goto Forum:
  


Current Time: Fri May 02 14:00:40 EDT 2025

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

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

Back to the top