Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » NoClassDefFoundError: org/eclipse/gef/internal/FlagSupport
NoClassDefFoundError: org/eclipse/gef/internal/FlagSupport [message #53844] Sun, 12 January 2003 16:45 Go to next message
Dag Rende is currently offline Dag RendeFriend
Messages: 17
Registered: July 2009
Junior Member
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 #53869 is a reply to message #53844] Sun, 12 January 2003 17:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chyliko.dev.disnet.cz

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
Re: NoClassDefFoundError: org/eclipse/gef/internal/FlagSupport [message #53889 is a reply to message #53869] Sun, 12 January 2003 17:49 Go to previous messageGo to next message
Dag Rende is currently offline Dag RendeFriend
Messages: 17
Registered: July 2009
Junior Member
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
Re: NoClassDefFoundError: org/eclipse/gef/internal/FlagSupport [message #54013 is a reply to message #53889] Sun, 12 January 2003 19:19 Go to previous messageGo to next message
Eric Bordeau is currently offline Eric BordeauFriend
Messages: 259
Registered: July 2009
Senior Member
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
>
>
>
>
Re: NoClassDefFoundError: org/eclipse/gef/internal/FlagSupport [message #54174 is a reply to message #54013] Mon, 13 January 2003 12:33 Go to previous message
Dag Rende is currently offline Dag RendeFriend
Messages: 17
Registered: July 2009
Junior Member
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
> >
> >
> >
> >
>
Previous Topic:Testers needed for Php-Uml-Editor...
Next Topic:Editor Overview back?
Goto Forum:
  


Current Time: Fri Aug 16 17:23:38 GMT 2024

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

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

Back to the top