Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Disable save for launchConfiguration.launch?
Disable save for launchConfiguration.launch? [message #604772] Mon, 22 February 2010 19:58 Go to next message
Robert Lewis is currently offline Robert Lewis
Messages: 24
Registered: July 2009
Junior Member
We have a set of external java processes that we call using the launch configuration framework.

When calling launchConfiguration.launch, it seems to prompt to save all dirty editors in the workspace, which is expected behavior but i would like to disable this for some processes. Is there an easy way to do this?

It looks like there is a JavaLaunchDelegate which extends AbstractJavaLaunchDelegate which exends LaunchConfigurationDelegate.

LaunchConfigurationDelegate has a method named preLaunchCheck which then saves all dirty editors.

I've looked around and there does not seem a simple way to disable then other then to inherit from the ILaunchDelegate and ILaunchConfigurationDelegate to override the one method.

Is there any simple way to do this?


Any help is appreciated.
Re: Disable save for launchConfiguration.launch? [message #604774 is a reply to message #604772] Tue, 23 February 2010 02:13 Go to previous message
Robert Lewis is currently offline Robert Lewis
Messages: 24
Registered: July 2009
Junior Member
Well it seems i answered my own question. I can create an 'org.eclipse...launchDelegate' extension point, specify the run modes (run, debug) and the class which is the LaunchConfigurationDelegate.

I created an object called CLaunchConfigurationDelegate which this extension point references, inherited from JavaLaunchDelegate and overrided the method that performs the save to do nothing when i start my processes using the launch configuration framework.

I hope this helps someone who has a similar question!
Previous Topic:Disable save for launchConfiguration.launch?
Next Topic:Version handling plugin
Goto Forum:
  


Current Time: Thu Sep 18 07:53:08 GMT 2014

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

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