Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » External launch on different thread
External launch on different thread [message #667631] Sat, 30 April 2011 03:19 Go to next message
Eclipse UserFriend
I am having issues with output of an external program, launched via LaunchConfigurationDelegate, not being displayed consistently in the Console View. I tried to launch the program via External Tool Configuration dialog and console appears to display the message just fine.

Only difference I saw was that my code was run inside the main thread while launch execution via External Tools ran inside of a separate worker thread.

Is there an example or tutorial of how to run my launch code in a separate thread?

Thanks.
Re: External launch on different thread [message #667632 is a reply to message #667631] Sat, 30 April 2011 03:34 Go to previous message
Eclipse UserFriend
I have a Handler for my command and have the execute() method implemented within it:

@Override
public Object execute(ExecutionEvent event) throws ExecutionException
{
  ...
  ...
  config.launch(ILaunchManager.RUN_MODE, null);
  ...
}


I this where I would create a separate thread to run the launch execution in?
Previous Topic:Adding grid lines inside web page editor
Next Topic:Simple Plugin - Know the path of a file
Goto Forum:
  


Current Time: Wed Jul 09 22:44:29 EDT 2025

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

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

Back to the top