Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to semantically group elements?
How to semantically group elements? [message #1742684] Tue, 06 September 2016 15:28 Go to next message
Philipp Heisig is currently offline Philipp HeisigFriend
Messages: 26
Registered: November 2014
Junior Member
Hi,

my data model has a class with an enum to classify the context of the according objects. I would like to group objects with the same semantic, i.e. for all those who have the same enum item, but don't want to have this structure in my metamodel.

Is there a way to use folders in my editor, which don't touch the data structure? If so, where are the anchor points in the generated code to realize that?
Or would you say that integrating a "container class" in my meta model is the cleaner way?
Re: How to semantically group elements? [message #1742791 is a reply to message #1742684] Wed, 07 September 2016 15:34 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Yes this can be accomplished just with item providers, i.e., by altering what's returned for getChildren and getParent and introducing intermediate item provider instances, but it is really quite complex and is too much detail to explain.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Setting an Enum Reference Value in the Subclasses
Next Topic:context free ocl request
Goto Forum:
  


Current Time: Fri Apr 26 09:15:00 GMT 2024

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

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

Back to the top