Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » External launch on different thread
External launch on different thread [message #667631] Sat, 30 April 2011 07:19 Go to next message
Eclipse User is currently offline Eclipse UserFriend
Messages: 7
Registered: April 2011
Junior Member
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 07:34 Go to previous message
Eclipse User is currently offline Eclipse UserFriend
Messages: 7
Registered: April 2011
Junior Member
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: Sat Apr 20 01:36:26 GMT 2024

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

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

Back to the top