Change the outline view [message #104135] |
Tue, 04 December 2007 15:42 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Ed Merks Messages: 33264 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02094 seconds