Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Link Mapping without Source or Target Feature
Link Mapping without Source or Target Feature [message #516614] Wed, 24 February 2010 15:16 Go to next message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
Hi,

i have a ecore Model for a special Statemachine.
The State an Transition Classes look like this:
State : EClass
->name : String
->transitions : Transition

Transition:EClass
->id : String
->target : String


the target Attribute in Transition should be the name of a state.

Of course, I could change the ecore Model and add State References in the Transition Type Class but is there a way without changing the ecore Model for that?
Re: Link Mapping without Source or Target Feature [message #519213 is a reply to message #516614] Mon, 08 March 2010 05:32 Go to previous message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi Sui,

If you set State.name as the unique ID in EMF, and Transition to an
EReference of State, you should be able to emulate this functionality
without needing to modify any GMF code.

Cheers
Jevon

Sui wrote:
> Hi,
>
> i have a ecore Model for a special Statemachine.
> The State an Transition Classes look like this:
>
> State : EClass
> ->name : String
> ->transitions : Transition
>
> Transition:EClass
> ->id : String
> ->target : String
>
>
> the target Attribute in Transition should be the name of a state.
>
> Of course, I could change the ecore Model and add State References in
> the Transition Type Class but is there a way without changing the ecore
> Model for that?
Previous Topic:Manage non-graphical nodes
Next Topic:Unexpected behaviour with audit rules.
Goto Forum:
  


Current Time: Tue Mar 19 11:45:50 GMT 2024

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

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

Back to the top