Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Extending the Shapes Editor
Extending the Shapes Editor [message #201061] Fri, 28 October 2005 19:24 Go to next message
Eclipse UserFriend
Originally posted by: jedvito.gmail.com

Hi,

I've currently been trying to extend the shapes editor example. I've
hooked up the code in the src zip file into a plug-in project. I set up
the plug-in project as I normally do. New Project->Plug-in Project and
then import from archive file. The problem is when I try binding the
shapes editor plug-in to a file extension lets say .shapes by modifying
the manifest.mf, and I run it as an Eclipse application and create a file
with .shapes extension, it gives me the following error:

unable to instantiate Expecting an instance of IViewPart, IEditorPart or
ComponentFactory but found sJ.org.eclipse.gef.examples.shapes.ShapesPlugin

And if I do not bind it to a file extension, run it, and create a file, it
acts as if the plug-ins not there. I think the problem might on how my
project is setup. Any suggestions? Thanks in advance.
Re: Extending the Shapes Editor [message #201098 is a reply to message #201061] Fri, 28 October 2005 19:55 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
You can also get the project from CVS as decribed on the GEF web site.
Those projects are already configured, you just need Eclipse and GEF.
Just make sure you get a version that matches your GEF version (I use R3_1).

"Jed" <jedvito@gmail.com> wrote in message
news:28b502119901aa5372f24379a45a452f$1@www.eclipse.org...
> Hi,
>
> I've currently been trying to extend the shapes editor example. I've
> hooked up the code in the src zip file into a plug-in project. I set up
> the plug-in project as I normally do. New Project->Plug-in Project and
> then import from archive file. The problem is when I try binding the
> shapes editor plug-in to a file extension lets say .shapes by modifying
> the manifest.mf, and I run it as an Eclipse application and create a file
> with .shapes extension, it gives me the following error:
>
> unable to instantiate Expecting an instance of IViewPart, IEditorPart or
> ComponentFactory but found sJ.org.eclipse.gef.examples.shapes.ShapesPlugin
>
> And if I do not bind it to a file extension, run it, and create a file, it
> acts as if the plug-ins not there. I think the problem might on how my
> project is setup. Any suggestions? Thanks in advance.
Re: Extending the Shapes Editor [message #201348 is a reply to message #201098] Mon, 31 October 2005 17:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jedvito.gmail.com

Hi,

Thanks for your suggestion. I downloaded the plug-in from the repository
and took care of some errors like unimplemented methods. Its still giving
me an error which looks like the following:

java.lang.NullPointerException
at
org.eclipse.gef.ui.palette.FlyoutPaletteComposite.<init>(FlyoutPaletteComposite.java:195)
at
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.cr eatePartControl(GraphicalEditorWithFlyoutPalette.java:75)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:585)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:365)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
....TRUNCATED

I'm using Eclipse SDK ver 3.1.0 and GEF 3.1.1. I think its related to the
unimplemented methods I took care of by adding empty methods. Any
suggestions are welcome.
Re: Extending the Shapes Editor [message #201357 is a reply to message #201348] Mon, 31 October 2005 20:15 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
Hm, I use Eclipse 3.1.1 with GEF 3.1.1 and I don't get any errors when I
check out from CVS.
Did you extract the version I mentioned or just the HEAD?
I don't know about the NPE, but it might be related.

"Jed" <jedvito@gmail.com> wrote in message
news:01dab214c7dafc4e0b01192eee9ced2a$1@www.eclipse.org...
> Hi,
>
> Thanks for your suggestion. I downloaded the plug-in from the repository
> and took care of some errors like unimplemented methods. Its still giving
> me an error which looks like the following:
>
> java.lang.NullPointerException
> at
> org.eclipse.gef.ui.palette.FlyoutPaletteComposite.<init>(FlyoutPaletteComposite.java:195)
> at
> org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.cr eatePartControl(GraphicalEditorWithFlyoutPalette.java:75)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:585)
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:365)
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
> ....TRUNCATED
>
> I'm using Eclipse SDK ver 3.1.0 and GEF 3.1.1. I think its related to the
> unimplemented methods I took care of by adding empty methods. Any
> suggestions are welcome.
Re: Extending the Shapes Editor [message #201379 is a reply to message #201357] Mon, 31 October 2005 20:54 Go to previous message
Eclipse UserFriend
Originally posted by: jedvito.gmail.com

Hi,

I thought it might have been my eclipse and gef not having both 3.1.1. But
now I have both and still get the same error. What do you mean by just
getting the HEAD? Might be something with the way I check it out. I go to
new project then check out from cvs. Fill out the form and go with
/cvsroot/tools . Find org.examples.gef.shapes..then click finish. Hmm..I
can see some more options..with tags heads, branches, versions and dates.
Is this what you were talking about? Ohh..I see..now to find out what the
right version is..R3_1 was it? My first time using CVS so pls bear with me
:)

I think I got it now. :) Thanks alot!
Previous Topic:Automatica Layout issues
Next Topic:feedback example
Goto Forum:
  


Current Time: Fri Dec 06 18:14:09 GMT 2024

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

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

Back to the top