Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Influence which methods are on which EMF interface
Influence which methods are on which EMF interface [message #1440254] Wed, 08 October 2014 01:59 Go to next message
Eclipse UserFriend
Hey,

Suppose I have a grammar like this:


ProcessVariant:
	'process-variant' name=FQName '{'
		(properties+=Property|elements+=ProcessVariantElement|states+=StateType)*
	'}'
;

Process:
	'process' name=FQName '{' (properties+=Property|elements+=ProcessElement|states+=StateType)* '}'
;

InlineProcess:
	'inline-process' name=FQName '{' (properties+=Property|states+=StateType)* '}'
;

StateMachineContributor:
	Process|InlineProcess|ProcessVariant
;


What happens is, that StateMachineContributor is an empty interface, and all the three process thingies have their own getStates() method. I'd like to have that common method on the common interface.

Is there any way to influence this without editing the models manually?

Cheers,
Markus
Re: Influence which methods are on which EMF interface [message #1440264 is a reply to message #1440254] Wed, 08 October 2014 02:13 Go to previous message
Eclipse UserFriend
Nevermind. For some reason it works now... Smile
Previous Topic:NullPointerException when editing an ecore model
Next Topic:Luna SR1, model editor going berserk during text reconciliation
Goto Forum:
  


Current Time: Sun Nov 02 21:52:57 EST 2025

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

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

Back to the top