Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to create different filters to display the model in a generated EMF editor
How to create different filters to display the model in a generated EMF editor [message #696343] Wed, 13 July 2011 18:52 Go to next message
Wagner Paz is currently offline Wagner PazFriend
Messages: 5
Registered: March 2011
Junior Member
I have a generated EMF editor that displays the model in the default way, but i would like to create a set of filters to displaying the data in different ways. For example, my model consist basically in two objects: Domain and URI. Each domain may have a set of subdomains and/or a set of URIs. Sometimes is desired that the editor shows only URI, other times only the low-level domains (ex.: "www.eclipse.org" and NOT "eclipse.org" or "org") and other times the default tree structure. How can I do that without changing the model data?
Thanks!
Re: How to create different filters to display the model in a generated EMF editor [message #696370 is a reply to message #696343] Wed, 13 July 2011 19:15 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
One way to accomplish this is to create a derived
XyzItemProviderAdapterFactory that creates derived AbcItemProviders that
are specialized to show some alternative.


On 13/07/2011 11:52 AM, Wagner Paz wrote:
> I have a generated EMF editor that displays the model in the default
> way, but i would like to create a set of filters to displaying the
> data in different ways. For example, my model consist basically in two
> objects: Domain and URI. Each domain may have a set of subdomains
> and/or a set of URIs. Sometimes is desired that the editor shows only
> URI, other times only the low-level domains (ex.: "www.eclipse.org"
> and NOT "eclipse.org" or "org") and other times the default tree
> structure. How can I do that without changing the model data?
> Thanks!


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[EMF Compare] Scalability issues on GenericDiffEngine.getMatchedEObject(EObject) & AbstractC
Next Topic:Plugins needed to create an ECore Diagram
Goto Forum:
  


Current Time: Thu Apr 25 04:41:41 GMT 2024

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

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

Back to the top