Diagram Partitioning [message #523477] |
Fri, 26 March 2010 11:12  |
Eclipse User |
|
|
|
Hi,
i have problems with the feature "double-click to open a new Diagram Instance"
My model looks like this.
Document Root
-RootState
- -State
- - - Substate
- - - - Events
- - - - Actions
- - - - etc.
I created a GMF editor with RootState as root for the Canvas.
Substate is an affixed Child on State. If a double-click on Substate is received, a new Diagram Window should open with SubState as Root!
I tried this http://wiki.eclipse.org/Diagram_Partitioning example.
First i did everything as described in Usecase 1 "same type". When I double-clicked on a Substate, nothing happend.
Then I tried the Usecase 2 "different type" example.
I created a second GMFGraph, Tool, Map and GMFGen File for the Substate.
I created the source for my second editor and changed everything as explained in the example.
But still nothing happend.
I debugged the code and figured out that the
Diagram intializeNewDiagram()
function throws an exception because the value d on:
Diagram d = ViewService.createDiagram(getDiagramDomainElement(),getDiagramKind(), getPreferencesHint());
is null !
Has anyone an idea ?
|
|
|
|
|
|
Re: Diagram Partitioning [message #536474 is a reply to message #536160] |
Fri, 28 May 2010 08:28  |
Eclipse User |
|
|
|
Thx for help!
I did so, but my problem was an other.
In my model definition I did a generalization from my Node to my Diagram-Klass instead of a spezialisation.
Thx
Alexej
|
|
|
Powered by
FUDForum. Page generated in 0.06813 seconds