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.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");

protected void createEditPolicies() {
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(
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(
at org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(

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: Thu Oct 08 20:20:30 GMT 2015

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

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