Skip to main content



      Home
Home » General (non-technical) » Eclipse Foundation » Build Path problem
Build Path problem [message #39299] Sat, 16 September 2006 07:15 Go to next message
Eclipse UserFriend
Hey

I'm fairly new to eclipse and just trying out gef for the first time.

I've added three jar files to the build path (although I'm pretty sure I
don't need the gmf one)

org.eclipse.gef_3.2.0.v20060626.jar
org.eclipse.gef.doc.isv_3.2.0.v20060626.jar
org.eclipse.gmf.runtime.gef.ui_1.0.0.v20060627-1200.jar

All the right versoin and can import to a class just fine, like:
import org.eclipse.gef.*;
import org.eclipse.gef.editparts.AbstractGraphicalEditPart;

Problem is when I try to create a class (my first using gef):

public class DiagramContentsEditPart extends AbstractGraphicalEditPart {
...
}

I get the error:
The type org.eclipse.core.runtime.IAdaptable cannot be resolved. It is
indirectly referenced from required .class files

Do I need to add to the build path? Or is there something else I'm missing?

Thanks for your help.
Re: Build Path problem [message #39362 is a reply to message #39299] Sat, 16 September 2006 08:09 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Con,

You probably should be building a plugin and not messing directly with
the build path, particularly if you are trying to build something that
will run as a plugin. I think IAdaptable is in
org.eclipse.equinox.common, but to create a properly functioning plugin,
you should be editing the MANIFEST.MF and using the Dependencies tab to
add dependencies on all the plugins you need. You should use the
newcomers, platform, or gef newsgroup for questions like this, not the
foundation newsgroup, so please redirect your followup questions to one
of those.


Con Gaff wrote:
> Hey
>
> I'm fairly new to eclipse and just trying out gef for the first time.
>
> I've added three jar files to the build path (although I'm pretty sure
> I don't need the gmf one)
>
> org.eclipse.gef_3.2.0.v20060626.jar
> org.eclipse.gef.doc.isv_3.2.0.v20060626.jar
> org.eclipse.gmf.runtime.gef.ui_1.0.0.v20060627-1200.jar
>
> All the right versoin and can import to a class just fine, like:
> import org.eclipse.gef.*;
> import org.eclipse.gef.editparts.AbstractGraphicalEditPart;
>
> Problem is when I try to create a class (my first using gef):
>
> public class DiagramContentsEditPart extends AbstractGraphicalEditPart {
> ..
> }
>
> I get the error:
> The type org.eclipse.core.runtime.IAdaptable cannot be resolved. It is
> indirectly referenced from required .class files
>
> Do I need to add to the build path? Or is there something else I'm
> missing?
>
> Thanks for your help.
>
>
Previous Topic:Eclipse Projects
Next Topic:Software Update Problem
Goto Forum:
  


Current Time: Thu May 08 08:35:24 EDT 2025

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

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

Back to the top