Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Editor (GraphicalEditorWithFlyoutPalette ) won't open
Editor (GraphicalEditorWithFlyoutPalette ) won't open [message #249135] Wed, 03 June 2009 12:03 Go to next message
Chris Turner is currently offline Chris TurnerFriend
Messages: 9
Registered: July 2009
Junior Member
Hi Everyone!

Im trying to open an GEF-Editor. My class is extended from
GraphicalEditorWithFlyoutPalette but when i try to open it i get the
following error:

"Could not open the editor: The editor class could not be instantiated.
This usually indicates a missing no-arg constructor or that the editor's
class name was mistyped in plugin.xml."

And in the details:

java.lang.NoClassDefFoundError:
org/eclipse/ui/views/properties/IPropertySheetEntry
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
.......


The Editor-ID is correct i copied it from the plugin.xml and my Editor
class and my EditorInput class have both an Constructor with no argument.
Most importent: if i extend my Editor from EditorPart - i don't get an
error and the Editor opens.


Is this an common error, a new bug or am i doing something wrong?

Thanks in advance
Chris
Re: Editor (GraphicalEditorWithFlyoutPalette ) won't open [message #249156 is a reply to message #249135] Thu, 04 June 2009 05:18 Go to previous message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

You're doing it wrong. The editor must be a sub-class of EditorPart.
Eclipse's editor extension requires it. In fact, I strongly recommend you
extend GEF's GraphicalEditor. Check how it's done with GEF logic and
shapes examples.

Cheers,
Alex
Previous Topic:remove palette context menu actions
Next Topic:Clipping area
Goto Forum:
  


Current Time: Tue Nov 12 19:50:45 GMT 2024

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

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

Back to the top