Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Displaying an EMF model inside a TreeViewer
Displaying an EMF model inside a TreeViewer [message #443842] Sat, 04 February 2006 19:37 Go to next message
Volker Schilling is currently offline Volker SchillingFriend
Messages: 14
Registered: July 2009
Junior Member
Hi all,

I like to create something like the project explorer of eclipse.
I create a model and generate all the things possible with emf.

Then I try to display the model inside a TreeViewer by using the gollowing
code:

public void createPartControl(Composite parent) {

mTreeViewer = new TreeViewer(parent,
SWT.BORDER | SWT.MULTI | SWT.V_SCROLL);

FSMStudioProject project =
ModelFactoryImpl.eINSTANCE.createFSMStudioProject();
project.setProjectName("Testproject");

ProjectItem item = ModelFactoryImpl.eINSTANCE.createProjectItem();
item.setItemName("Testitem");

AdapterFactory mAdapterFactory = new ModelItemProviderAdapterFactory();

mTreeViewer.setContentProvider(new
AdapterFactoryContentProvider(mAdapterFactory));
mTreeViewer.setLabelProvider(new
AdapterFactoryLabelProvider(mAdapterFactory));
mTreeViewer.setInput(project);
}

Nothing happen when I execute my Plug-in, but the following error messages
pop up in the error view:

Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.updateMenu
Invalid Menu Extension (Path is invalid):
org.eclipse.update.ui.configManager
Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.newUpdates
Invalid Menu Extension (Path is invalid):
org.eclipse.ui.actions.showKeyAssistHandler

please help me.

best regards
Volker Schilling
Re: Displaying an EMF model inside a TreeViewer [message #444224 is a reply to message #443842] Fri, 10 February 2006 22:58 Go to previous message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
Try asking on the EMF newsgroup.

Boris

"Volker Schilling" <VolkerSchilling@SchillingSoft.de> wrote in message
news:ds2vq8$r48$2@utils.eclipse.org...
> Hi all,
>
> I like to create something like the project explorer of eclipse.
> I create a model and generate all the things possible with emf.
>
> Then I try to display the model inside a TreeViewer by using the gollowing
> code:
>
> public void createPartControl(Composite parent) {
>
> mTreeViewer = new TreeViewer(parent,
> SWT.BORDER | SWT.MULTI | SWT.V_SCROLL);
>
> FSMStudioProject project =
> ModelFactoryImpl.eINSTANCE.createFSMStudioProject();
> project.setProjectName("Testproject");
>
> ProjectItem item = ModelFactoryImpl.eINSTANCE.createProjectItem();
> item.setItemName("Testitem");
>
> AdapterFactory mAdapterFactory = new
ModelItemProviderAdapterFactory();
>
> mTreeViewer.setContentProvider(new
> AdapterFactoryContentProvider(mAdapterFactory));
> mTreeViewer.setLabelProvider(new
> AdapterFactoryLabelProvider(mAdapterFactory));
> mTreeViewer.setInput(project);
> }
>
> Nothing happen when I execute my Plug-in, but the following error messages
> pop up in the error view:
>
> Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.updateMenu
> Invalid Menu Extension (Path is invalid):
> org.eclipse.update.ui.configManager
> Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.newUpdates
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.actions.showKeyAssistHandler
>
> please help me.
>
> best regards
> Volker Schilling
Previous Topic:ViewerFilter Question
Next Topic:[DataBinding] MasterDetails: Table + Text
Goto Forum:
  


Current Time: Fri Dec 06 02:39:00 GMT 2024

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

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

Back to the top