Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to launch LaunchConfigurations sequentially ?
How to launch LaunchConfigurations sequentially ? [message #646453] Fri, 24 December 2010 06:51
No real name is currently offline No real name
Messages: 1
Registered: December 2010
Junior Member
Hi,

we use the LaunchManager to launch Configurations programmatically.

Now we need to launch two workflows sequentially, e.g. wait for the first to finish until the second one is launched.

How can we accomplish this ?

mILaunchMgr = DebugPlugin.getDefault().getLaunchManager();

ILaunchConfigurationType configType = 
			mILaunchMgr.getLaunchConfigurationType("org.eclipse.pde.ui.RuntimeWorkbench");


ILaunchConfigurationWorkingCopy wc = configType.newInstance(null, "(ECL_LAUNCH");		

wc.setAttribute("append.args"		, true);
wc.setAttribute("askclear"			, true);
wc.setAttribute("automaticAdd"		, true);
wc.setAttribute("automaticValidate"	, false);
...
...

ILaunchConfiguration mILaunchConfiguration = wc.doSave();	
mILaunchConfiguration.launch("run",null);

Previous Topic:PropertySheet clears when maximized
Next Topic:how to save all project specific info of eclipse
Goto Forum:
  


Current Time: Fri Jul 25 21:19:27 EDT 2014

Powered by FUDForum. Page generated in 0.03434 seconds