Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Problem with ISelectionProvider at runtime
Problem with ISelectionProvider at runtime [message #228499] Tue, 26 December 2006 08:21
Nacef is currently offline NacefFriend
Messages: 29
Registered: July 2009
Junior Member
Hi everyone,

I'm a newbie in RCP development and especially with GEF. I wanted just to test GEF in an RCP application so that's what I did step by step :
- I created a new RCP plugin project.
- I added a new view called ProcessView.
- I added org.eclipse.gef and org.eclipse.draw2d as dependencies in the project.
- I added a GraphicalViewer to the view and added the following code :

public void createPartControl(Composite parent) {
graphicalViewer = new GraphicalViewerImpl();
graphicalViewer.createControl(parent);
graphicalViewer.setEditDomain(new EditDomain());
graphicalViewer.setEditPartFactory(new EditPartFactory(){

public EditPart createEditPart(EditPart context, Object model) {
EditPart result = new AbstractGraphicalEditPart() {
protected IFigure createFigure() {
return new Label("Hello, world");
}

@Override
protected void createEditPolicies() {
}
};
result.setModel(model);
return result;
}});

graphicalViewer.setContents(new Object());
}

What I get when running is :
java.lang.NoClassDefFoundError: org/eclipse/jface/viewers/ISelectionProvider
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(DefaultClassLoader.java:161)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(ClasspathManager.java:499)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(ClasspathManager.java:469)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(ClasspathManager.java:428)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:411)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:334)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:386)
....


If anyone can help me I would be very grateful, it is crucial for my project.

Thx to all
Previous Topic:supporting SWT LineAttributes? in draw2d
Next Topic:Question about realisation of swimlanes
Goto Forum:
  


Current Time: Sat Nov 29 07:59:49 GMT 2014

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

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