Extending the Shapes Editor [message #201061] |
Fri, 28 October 2005 19:24 |
Eclipse User |
|
|
|
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 #201348 is a reply to message #201098] |
Mon, 31 October 2005 17:42 |
Eclipse User |
|
|
|
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 #201379 is a reply to message #201357] |
Mon, 31 October 2005 20:54 |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.03140 seconds