java - how to remove invalid launch configuration from recent launches drop-down -
I am currently developing an Eclipse plug-in which adds its custom launch configuration, which includes some resources in the workspace Is connected to.
Background: Sometimes, the underlying resource will change, the launch will invalidate the configuration, and should not be runnable
How do I program Remove the way to launch the drop down from the recent launch?
I mean it has to face downwards:
This will show all the recently started configurations that were recently launched.
Edit: I am trying to reach history through this time and I can not find an API that tells me where I can get the proper frequency, is.
Second Editing: Launch Configuration Manager is part of an internal package, it should not be used. Background: Occasionally, the underlying resource will change, the launch will invalidate the configuration, And should not be runnable
Why do you want to remove an 'invalid' launch configuration history but otherwise retain it? If it is invalid, then remove it completely or repair it it.
If you are willing to take risks and use the internal API, you should be able to get through the LaunchHistory
DebugUIPlugin.getDefault (). GetLaunchConfigurationManager () lgetLaunchHistory ()
.
But have you tried to remove it from history by removing invalid launch configuration from now on?
Aleanch configuration working co-operative = launching config.workworking coop (); WorkingCopy.delete (); Type the type of light type configuration type = launchconfig.tapty (); IContainer Container = Launch Config.GetFile () == Empty? Free: launchConfig.getFile (). GetParent (); Alok Configuration Working Copy New LaunchConfi = Launch Type.News (Container, Working Copy.Jetname ()); // Copy all the properties of 'NewLeaf Confief' from 'Launch Config' newLaunchConfig.doSave ();
Comments
Post a Comment