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:

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)
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(

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
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

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.

Previous Topic:Adding to palette context menu
Next Topic:Is this a legal way to create an image?
Goto Forum:

Current Time: Fri Apr 27 08:50:12 GMT 2018

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

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