| set run configuration programmtical, launch programmatical [message #335724] | 
Thu, 23 April 2009 11:25   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi, 
I want to programmatically set the arguments for running a python script  
and I want to run it programmatically.  
 
My goal is to do programmatically what you would normally do by hand with 
right mousekey>run as...>run configuration  
and setting the arguments. 
 
Unfortunately, my search did not help me on this (or I was lacking the  
right keywords). 
Please help me find out wether it is possible at all and if so, how to  
accomplish it. 
Thanks for your consideration.
 |  
 |  
  | 
 | 
| Re: set run configuration programmtical, launch programmatical [message #335758 is a reply to message #335731] | 
Tue, 28 April 2009 05:43   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Thank you, Prakash, your hint was very helpful. 
 
To sum it up for others with the same problem: 
Read the article, substitute  
 
 ILaunchConfigurationType type =  
manager.getLaunchConfigurationType(ID_JAVA_APPLICATION); 
 
for 
 
 ILaunchConfigurationType type =  
 manager.getLaunchConfigurationType(org.python.pydev.debug.co re.Constants.ID_PYTHON_REGULAR_LAUNCH_CONFIGURATION_TYPE); 
 
and if eclipse complains about unset attributes, create a configuration  
manually and search all attributes of the workingCopy programmatical,  
where you should get the String constants for the desired attributes. 
 
Bewa
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03286 seconds