Link Mapping to shortcuts [message #482205] |
Tue, 25 August 2009 12:56  |
Eclipse User |
|
|
|
Hello all,
As posted previously by others in the newsgroup, I have problems with
creation of a link mapping between "normal" nodes and shortcut nodes.
In my Editor 1, I have Class C which has a reference to a property P.
In my Sub-Editor I am able to create a shortcut to Class C()
Now I want to link my Elements in the sub-Editor with the property P
which does not work.
So , as read in older posts , I created a "fake" node mapping to my
model element P in my Sub-Editor.
In .graph I made a Figure Descriptor with Rectangle,Label and Child
Accessor. I made a Node and Diagram Label and in .gmfmap I added a Top
level node and did not give a creation tool.
I tried to ignore the Validation but still cannot generate diagram code.
Generation fails with an Excpetion
org.eclipse.gmf.gmfgraph.impl.FigureDescriptorImpl cannot be cast to
org.eclipse.gmf.gmfgraph.Node
Did someone else have had a similar problem?
thx for any help,
JanRed
|
|
|
|
|
|
|
|
|
|
Re: Link Mapping to shortcuts [message #482859 is a reply to message #482618] |
Fri, 28 August 2009 06:49  |
Eclipse User |
|
|
|
Hello Jan,
Well, you need to perform the same trick with child node - create fake node
on a diagram visualizing this child one and use it for child node...
Never tried this but it looks like it should work.
-----------------
Alex Shatalin
|
|
|
Powered by
FUDForum. Page generated in 0.05119 seconds