Question

I am doing an eclipse plugin using gef. When I restart eclipse after a plugin installation I got a lot of errors regarding draw2d imports. For example in one of my classes I had:

import org.eclipse.draw2d.ImageFigure;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.MouseEvent;
import org.eclipse.draw2d.MouseMotionListener;

the 3 last imports were fine but the first one "import org.eclipse.draw2d.ImageFigure" could not anymore be resolved.

I can not figure out what is going wrong. Any ideas?

Was it helpful?

Solution 2

Ok I finally found the solution. The plugin was using its own version of draw2d.jar file. I manually replace that file with the draw2d.jar from the eclipse GEF plugin and everything was working fine again.

OTHER TIPS

Do you have org.eclipse.draw2d in Required Plug-ins(plugin.xml -> Dependencies)? If no - add and try to rebuild plugin, if yes - ... remove and add once again?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top