Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Change the outline view
Change the outline view [message #104135] Tue, 04 December 2007 15:42 Go to next message
Eclipse UserFriend
Originally posted by: marion.di-giacomo.cea.fr

Hi,

I have a problem to do an outline view.
I created and generated a metamodel with EMF, but I don't want to have
exactly the same information in the editor and the outline view. I would
like to have a folder for each class of the metamodel in this view.
So I created a 'Folder' class, a content provider and a label provider in
my project, and changed the getContentOutlinePage() method, which is
generated in the editor package, to add my modifications.
These classes have the same pattern than the generated classes, and I
think it is not a nice solution. But I don't want this class to be an
element of my metamodel.
Is there a clean solution to do this ?

Thanks,

Marion
Re: Change the outline view [message #104147 is a reply to message #104135] Tue, 04 December 2007 16:04 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Marion,

You can use instances of org.eclipse.emf.edit.provider.ItemProvider to
create view objects that aren't part of your model.


Marion Di Giacomo wrote:
> Hi,
>
> I have a problem to do an outline view.
> I created and generated a metamodel with EMF, but I don't want to have
> exactly the same information in the editor and the outline view. I
> would like to have a folder for each class of the metamodel in this view.
> So I created a 'Folder' class, a content provider and a label provider
> in my project, and changed the getContentOutlinePage() method, which
> is generated in the editor package, to add my modifications.
> These classes have the same pattern than the generated classes, and I
> think it is not a nice solution. But I don't want this class to be an
> element of my metamodel.
> Is there a clean solution to do this ?
> Thanks,
>
> Marion
>
>
>
>
>
>
>
>
>
Re: Change the outline view [message #612728 is a reply to message #104135] Tue, 04 December 2007 16:04 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31469
Registered: July 2009
Senior Member
Marion,

You can use instances of org.eclipse.emf.edit.provider.ItemProvider to
create view objects that aren't part of your model.


Marion Di Giacomo wrote:
> Hi,
>
> I have a problem to do an outline view.
> I created and generated a metamodel with EMF, but I don't want to have
> exactly the same information in the editor and the outline view. I
> would like to have a folder for each class of the metamodel in this view.
> So I created a 'Folder' class, a content provider and a label provider
> in my project, and changed the getContentOutlinePage() method, which
> is generated in the editor package, to add my modifications.
> These classes have the same pattern than the generated classes, and I
> think it is not a nice solution. But I don't want this class to be an
> element of my metamodel.
> Is there a clean solution to do this ?
> Thanks,
>
> Marion
>
>
>
>
>
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Change the outline view
Next Topic:Error saving packages using Teneo/Hiberbate
Goto Forum:
  


Current Time: Mon Sep 21 10:54:52 GMT 2020

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

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

Back to the top