NoClassDefFoundError: org/eclipse/gef/internal/FlagSupport [message #53844] |
Sun, 12 January 2003 11:45  |
Eclipse User |
|
|
|
Hi!
I got a really strange error. I am writing a plugin using GEF and have made
a copy of SelectEditPartTracker to use as a starting point for a modified
version of it. I call the class AssociationLabelTracker.
First i test my class before doing any changes to the copy (other than
renaming it and its constructor). I add this to my EditPart:
public DragTracker getDragTracker(Request req) {
return new AssociationLabelTracker(this);
}
But when using it i get (in the runtime-workspace/.metatdata/.log):
!ENTRY org.eclipse.ui 4 4 jan 12, 2003 17:12:36.62
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 jan 12, 2003 17:12:36.62
!MESSAGE org/eclipse/gef/internal/FlagSupport
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/gef/internal/FlagSupport
at
se.applied.schmod.AssociationLabelTracker.resetFlags(Associa tionLabelTracker
..java:117)
at org.eclipse.gef.tools.AbstractTool.activate(AbstractTool.jav a:203)
at
org.eclipse.gef.tools.SelectionTool.setDragTracker(Selection Tool.java:391)
at
org.eclipse.gef.tools.SelectionTool.handleButtonDown(Selecti onTool.java:133)
at org.eclipse.gef.tools.AbstractTool.mouseDown(AbstractTool.ja va:674)
at org.eclipse.gef.tools.SelectionTool.mouseDown(SelectionTool. java:328)
....
It works fine if i return the original SelectEditPartTracker in the
getDragTracker above.
What is so special with FlagSupport? Could it be some class loader problem?
Reards,
Dag Rende
|
|
|
|
|
|
Re: NoClassDefFoundError: org/eclipse/gef/internal/FlagSupport [message #54174 is a reply to message #54013] |
Mon, 13 January 2003 07:33  |
Eclipse User |
|
|
|
No, it will not work if I need to check the value of flag by getFlag. A
framework that is heavily based on inheriting must of course let me call the
methods I inherit.
/Dag
"Eric Bordeau" <ebordeau@us.ibm.com> skrev i meddelandet
news:avse6b$vi7$1@rogue.oti.com...
> Couldn't you just subclass SelectEditPartTracker and override the
necessary methods to customize it
> to your needs?
>
> Dag Rende wrote:
> > Thank you Ondrej!
> >
> > Okej GEF guys, are some classes in GEF designed to not be inheritable?
> > I assume this is a mistake.
> >
> > Regards,
> > Dag
> >
> > "Ondrej Chylik" <chyliko@dev.disnet.cz> skrev i meddelandet
> > news:avs85f$22f$1@rogue.oti.com...
> > I suppose this concerns class loaders and the well-known Eclipse
programming
> > guidelines.
> >
> > Classes in packages whose name contains "internal" are not meant to be
> > used/referenced by other plugins and therefore sometimes do not get
exported
> > by the plugin classloader at runtime.
> >
> > Unfortunatelly, Eclipse doesn't reflect this restrictions (e.g. only
part of
> > a plugin jar exported) during compilation, so everything compiles fine,
but
> > fails at runtime.
> >
> > What you need to do is to copy class FlagSupport to somewhere where you
can
> > access it (if you need it), or maybe request making this class public in
> > GEF.
> >
> > Regards,
> > Ondrej
> >
> >
> >
> >
>
|
|
|
Powered by
FUDForum. Page generated in 0.04912 seconds