Skip to main content



      Home
Home » Eclipse Projects » GEF » Running GEF Shapes Example in Run-Time Workbench: java.lang.ExceptionInInitializerError
Running GEF Shapes Example in Run-Time Workbench: java.lang.ExceptionInInitializerError [message #162824] Tue, 28 December 2004 07:39 Go to next message
Eclipse UserFriend
Originally posted by: mmaercker.tripper-bullet.com

Dear group,

I am trying to run the GEF Shapes Editor in the run-time workbench so I can
step through the code. The example works fine as a plug-in in my base
Eclipse installation but there, of course, I can not set breakpoints, etc.
(or so I assume). Regrettably, the source for the example comes without a
..project or a plugin.xml file. So I did the following:

- Removed the plug-in from the base installation
- Created a new plug-in project
- Imported the source files
- copied plugin.xml and shapes.gif from the .jar version of the example to
the new project

When I run the run-time workbench with this new plug-in project activated in
the configuration, the following happens:
- The wizard works as expected (a ShapesCreationWizard instance is created,
the wizard is shown and so on)
- After I select the .shapes file type and enter a name, an instance of
ShapesEditor is created (so the class is definitely found).
- Then lots of things happen in the platform which I do not understand well
enough to summarize.
- In InternalPlatform::run(ISafeRunnable code) a LinkageError exception is
thrown.
- The LinkageError seems to lead to a PartInitException exception being
thrown in EditorManager::createPart(final EditorDescriptor desc).


Can anyone help me figure out what is goint on here?

Thanks in advance,

Martin Maercker
Re: Running GEF Shapes Example in Run-Time Workbench: java.lang.ExceptionInInitializerError [message #162841 is a reply to message #162824] Tue, 28 December 2004 09:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vlad_dumitrescu.hotmail.com

Hi,

I'm not sure if it was exactly the same problem that I had, but here's how
it worked for me:

* You have to copy the image files in the icons directory, which is only
found in the binary distribution. Depending on how you structure your
project, you might have to adjust the paths in ShapesEditorPaletteFactory.

Good luck! Best regards,
Vlad


"Martin Maercker" <mmaercker@tripper-bullet.com> skrev i meddelandet
news:cqrk26$bad$1@www.eclipse.org...
> Dear group,
>
> I am trying to run the GEF Shapes Editor in the run-time workbench so I
can
> step through the code.
Re: Running GEF Shapes Example in Run-Time Workbench: java.lang.ExceptionInInitializerError [message #162872 is a reply to message #162824] Tue, 28 December 2004 10:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You should be using the PDE to import plug-ins. You do not need to import
as source to set breakpoints.
Re: Running GEF Shapes Example in Run-Time Workbench: java.lang.ExceptionInInitializerError [message #162903 is a reply to message #162841] Tue, 28 December 2004 11:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mmaercker.tripper-bullet.com

Thanks Vlad, that did the trick!

I couldn't find an icons folder anywhere in the examples distribution I
downloaded (GEF-examples-3.1M4.zip) which was the only one I could find with
the Shapes example. So I just used dummy GIFs. Could you give me a hint
where to download the correct icons folder?


Best regards,

Martin


"Vlad Dumitrescu" <vlad_dumitrescu@hotmail.com> schrieb im Newsbeitrag
news:cqrrdf$2ki$1@www.eclipse.org...
> Hi,
>
> I'm not sure if it was exactly the same problem that I had, but here's how
> it worked for me:
>
> * You have to copy the image files in the icons directory, which is only
> found in the binary distribution. Depending on how you structure your
> project, you might have to adjust the paths in ShapesEditorPaletteFactory.
>
> Good luck! Best regards,
> Vlad
>
>
> "Martin Maercker" <mmaercker@tripper-bullet.com> skrev i meddelandet
> news:cqrk26$bad$1@www.eclipse.org...
> > Dear group,
> >
> > I am trying to run the GEF Shapes Editor in the run-time workbench so I
> can
> > step through the code.
>
>
Re: Running GEF Shapes Example in Run-Time Workbench: java.lang.ExceptionInInitializerError [message #162911 is a reply to message #162872] Tue, 28 December 2004 11:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mmaercker.tripper-bullet.com

Hi Randy,

beyond setting breakpoints, I was considering using the example as a
boilerplate starting point for my own shape editor. I am new to Eclipse and
admit to not yet having figured out the finer (perhaps also the coarser)
points of how plug-ins are integrated. But I was under the impression that
to really work with the code it would have to be in a project in the base
workspace installation (the one from which the run-time workbench is
launched). Is this a misconception on my part?


Best regards and thanks for your reply,

Martin


"Randy Hudson" <none@us.ibm.com> schrieb im Newsbeitrag
news:cqrugi$ch0$1@www.eclipse.org...
> You should be using the PDE to import plug-ins. You do not need to import
> as source to set breakpoints.
>
>
Re: Running GEF Shapes Example in Run-Time Workbench: java.lang.ExceptionInInitializerError [message #162919 is a reply to message #162903] Tue, 28 December 2004 14:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vlad_dumitrescu.hotmail.com

"Martin Maercker" <mmaercker@tripper-bullet.com> skrev i meddelandet
news:cqs19p$lei$1@www.eclipse.org...
> Thanks Vlad, that did the trick!
>
> I couldn't find an icons folder anywhere in the examples distribution I
> downloaded (GEF-examples-3.1M4.zip) which was the only one I could find
> with
> the Shapes example. So I just used dummy GIFs. Could you give me a hint
> where to download the correct icons folder?

Hi,

If I remember correctly, the icons are inside the gef.jar archive. I think
the path is org/eclipse/gef/icons.

regards,
Vlad
Re: Running GEF Shapes Example in Run-Time Workbench: java.lang.ExceptionInInitializerError [message #162933 is a reply to message #162919] Tue, 28 December 2004 15:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mmaercker.tripper-bullet.com

Oops, my mistake: they can be found in shapes.jar in GEF-examples-3.1M4.zip,
which I did unpack. But I must've somehow miscopied the icons folder while
mucking about with the plug-in project files. Sorry for taking up your time
on this one.

Thanks again,

Martin

"Vlad" <vlad_dumitrescu@hotmail.com> schrieb im Newsbeitrag
news:cqsbhv$khh$1@www.eclipse.org...
> "Martin Maercker" <mmaercker@tripper-bullet.com> skrev i meddelandet
> news:cqs19p$lei$1@www.eclipse.org...
> > Thanks Vlad, that did the trick!
> >
> > I couldn't find an icons folder anywhere in the examples distribution I
> > downloaded (GEF-examples-3.1M4.zip) which was the only one I could find
> > with
> > the Shapes example. So I just used dummy GIFs. Could you give me a hint
> > where to download the correct icons folder?
>
> Hi,
>
> If I remember correctly, the icons are inside the gef.jar archive. I think
> the path is org/eclipse/gef/icons.
>
> regards,
> Vlad
>
>
Re: Running GEF Shapes Example in Run-Time Workbench: java.lang.ExceptionInInitializerError [message #163013 is a reply to message #162911] Wed, 29 December 2004 11:26 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

In that case, pay close attention to the examples license agreement.

"Martin Maercker" <mmaercker@tripper-bullet.com> wrote in message
news:cqs1pv$n0b$1@www.eclipse.org...
> Hi Randy,
>
> beyond setting breakpoints, I was considering using the example as a
> boilerplate starting point for my own shape editor. I am new to Eclipse
and
> admit to not yet having figured out the finer (perhaps also the coarser)
> points of how plug-ins are integrated. But I was under the impression that
> to really work with the code it would have to be in a project in the base
> workspace installation (the one from which the run-time workbench is
> launched). Is this a misconception on my part?
>
>
> Best regards and thanks for your reply,
>
> Martin
>
>
> "Randy Hudson" <none@us.ibm.com> schrieb im Newsbeitrag
> news:cqrugi$ch0$1@www.eclipse.org...
> > You should be using the PDE to import plug-ins. You do not need to
import
> > as source to set breakpoints.
> >
> >
>
>
Previous Topic:About drag and drop
Next Topic:Changing getContentsPane()
Goto Forum:
  


Current Time: Mon Jul 14 08:52:26 EDT 2025

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

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

Back to the top