joining class and attribute which are in different packages [message #667641] |
Sat, 30 April 2011 07:43  |
Eclipse User |
|
|
|
Hi,
I have a question. I want to create an GMF-editor which consists of nodes and links. The nodes should have an additional information which is an attribute in another package. Is it possible to join the node and the attribute while they are in different packages?
Thanks in advance
Teresa
|
|
|
|
|
|
Re: joining class and attribute which are in different packages [message #670046 is a reply to message #670007] |
Thu, 12 May 2011 09:27  |
Eclipse User |
|
|
|
Terasa,
Comments below.
Teresa Lapp wrote:
> I have an ecore-model with a package and some subpackages. I
> want to connect a class from one subpackage with a class
> from another subpackage, so that the second class is an
> additional information to the first class.
It sounds like all you need is an EReference in one EClass whose eType
is something other EClass...
> The first class
> should be a node and the second class should be an
> additional information to the node.
> I've tried to combine these two classes by creating the
> gmfgraph-, gmftool-model and so on, but it doesn't work.
I imagine there should be a connection in the model itself, i.e., some
type of EReference to relate the two things.
|
|
|
Re: joining class and attribute which are in different packages [message #670047 is a reply to message #670007] |
Thu, 12 May 2011 09:27  |
Eclipse User |
|
|
|
Terasa,
Comments below.
Teresa Lapp wrote:
> I have an ecore-model with a package and some subpackages. I
> want to connect a class from one subpackage with a class
> from another subpackage, so that the second class is an
> additional information to the first class.
It sounds like all you need is an EReference in one EClass whose eType
is something other EClass...
> The first class
> should be a node and the second class should be an
> additional information to the node.
> I've tried to combine these two classes by creating the
> gmfgraph-, gmftool-model and so on, but it doesn't work.
I imagine there should be a connection in the model itself, i.e., some
type of EReference to relate the two things.
|
|
|
Powered by
FUDForum. Page generated in 0.04732 seconds