Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » joining class and attribute which are in different packages
joining class and attribute which are in different packages [message #667641] Sat, 30 April 2011 07:43 Go to next message
Teresa Lapp is currently offline Teresa Lapp
Messages: 3
Registered: April 2011
Junior Member
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 #668634 is a reply to message #667641] Fri, 06 May 2011 10:08 Go to previous messageGo to next message
Teresa Lapp is currently offline Teresa Lapp
Messages: 3
Registered: April 2011
Junior Member
Can anyone help me please?
Re: joining class and attribute which are in different packages [message #668768 is a reply to message #668634] Sat, 07 May 2011 03:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25947
Registered: July 2009
Senior Member
Teresa,

I doubt anyone can help. I've read your question several times and I
have no idea what you're asking. What does it mean for an attribute to
be in a package? What does "joining" it with a class mean? Why do you
think this is a problem? What have you tried?


Teresa Lapp wrote:
> Can anyone help me please?
Re: joining class and attribute which are in different packages [message #670007 is a reply to message #668768] Thu, 12 May 2011 08:02 Go to previous messageGo to next message
Teresa Lapp is currently offline Teresa Lapp
Messages: 3
Registered: April 2011
Junior Member
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. 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.
Re: joining class and attribute which are in different packages [message #670046 is a reply to message #670007] Thu, 12 May 2011 09:27 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25947
Registered: July 2009
Senior Member
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 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25947
Registered: July 2009
Senior Member
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.
Previous Topic:Change ComboBox entries in the properties view
Next Topic:Empty GMFMAP
Goto Forum:
  


Current Time: Thu Jul 31 05:26:54 EDT 2014

Powered by FUDForum. Page generated in 0.02859 seconds