Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Problems executing an IJarExportRunnable inside a launch delegate launch method
Problems executing an IJarExportRunnable inside a launch delegate launch method [message #292301] Tue, 04 October 2005 11:50 Go to next message
Eclipse UserFriend
Hello, in my code I am trying to generate a jar file during the launch
method of a class implementing the ILaunchConfigurationDelegate. The code
for generating the jar works in other contexts( I reuse the class in an
editor, and have also tried it in the launchconfiguration dialog). But
when I try to run it it throws an InterruptedException, and I haven't
clicked cancel because there is no cancel button to click. I am just
calling runnable.run(null);
I have also tried packing the runnable inside a ProgressMonitorDialog, but
i can't get a Display when calling the code inside that method. It throws
a thread event exception.
Any help would be greatly appreciated.
Thanks.
Félix C.
Re: Problems executing an IJarExportRunnable inside a launch delegate launch method [message #292355 is a reply to message #292301] Wed, 05 October 2005 06:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.eclipse.org

Félix Cuadrado wrote:

> Hello, in my code I am trying to generate a jar file during the launch
> method of a class implementing the ILaunchConfigurationDelegate. The
> code for generating the jar works in other contexts( I reuse the class
> in an editor, and have also tried it in the launchconfiguration
> dialog). But when I try to run it it throws an InterruptedException,
> and I haven't clicked cancel because there is no cancel button to
> click. I am just calling runnable.run(null);
> I have also tried packing the runnable inside a ProgressMonitorDialog,
> but i can't get a Display when calling the code inside that method. It
> throws a thread event exception. Any help would be greatly appreciated.
> Thanks.
> Félix C.


Did you try using JarPackageData.createJarExportRunnable(...) ?

Dani
Re: Problems executing an IJarExportRunnable inside a launch delegate launch met [message #292364 is a reply to message #292355] Wed, 05 October 2005 09:37 Go to previous message
Eclipse UserFriend
Yes, my runnable is obtained by calling createJarExportRunnable from my
already configured JarPackageData object.
The weird thing is that outside the launch context, the method works. I
don't think there is a problem with the runnable.
Previous Topic:Double-click and drag to select words does not work
Next Topic:Spaces for TABs as a global editor preference?
Goto Forum:
  


Current Time: Wed May 07 14:07:19 EDT 2025

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

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

Back to the top