Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » gmf discussion
gmf discussion [message #496592] Tue, 10 November 2009 16:21
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080909040909030009020201
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

fyi

--------------080909040909030009020201
Content-Type: message/rfc822;
name="Nachricht als Anhang"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Nachricht als Anhang"

Path: build.eclipse.org!not-for-mail
From: Hauke Fuhrmann <haf@informatik.uni-kiel.de>
Newsgroups: eclipse.modeling.gmf
Subject: Alternative types of top node elements
Date: Thu, 29 May 2008 11:33:08 +0200
Organization: EclipseCorner
Message-ID: <g1lt8l$mkl$1@build.eclipse.org>
NNTP-Posting-Host: sunbeam.informatik.uni-kiel.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: build.eclipse.org 1212053589 23189 134.245.253.156 (29 May 2008 09:33:09 GMT)
X-Complaints-To: news@build.eclipse.org
NNTP-Posting-Date: Thu, 29 May 2008 09:33:09 +0000 (UTC)
User-Agent: Icedove 1.5.0.14pre (X11/20080305)
Xref: build.eclipse.org eclipse.modeling.gmf:13126

Hi there,

I want to do something very simple:

I have two objects in my domain model: A State and a CompartmentState,
where the CompartmentState extends the State. Now the CompartmentState
aggregates States in a "myStates" relation, hence it can contain States
and CompartmentStates recursively, modeling hierarchy.

The diagram extends CompartmentState, hence it can contain both types.

How do I set this up correctly in the mapping?

1. I cannot create two TopNodeReference for both State and
CompositeState, because I have only one aggregation "myStates". Hence I
get an error message if I choose the same Containment Feature:
"Phantom nodes that are not targeted by a link mapping exist".

2. I cannot create a single TopNodeReference to State (which gets
extended by CompartmentState), because only the latter has a Child
Reference to "myStates".

3. Next try would be to create a second aggregation from
CompartmentState to CompartmentState recursively to get two distinct
aggregations, but this is not exactly what I want...

How to do it?

Cheers,
Hauke

--------------080909040909030009020201--
Previous Topic:Problem displaying menu's in Eclipse 3.5
Next Topic:generate a node in program
Goto Forum:
  


Current Time: Sat Apr 20 01:19:25 GMT 2024

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

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

Back to the top