diff options
author | Darin Wright | 2002-05-31 20:43:56 +0000 |
---|---|---|
committer | Darin Wright | 2002-05-31 20:43:56 +0000 |
commit | 4a173fdb6f68de75c6f14cbc9a03e0475a5ab3e4 (patch) | |
tree | ff9c0139f4bcfbe72ea15a6a6305e8fbffc5e400 /org.eclipse.debug.ui/ui | |
parent | 5d4c727319d68fcbb075e11c50f9ee7223a59deb (diff) | |
download | eclipse.platform.debug-4a173fdb6f68de75c6f14cbc9a03e0475a5ab3e4.tar.gz eclipse.platform.debug-4a173fdb6f68de75c6f14cbc9a03e0475a5ab3e4.tar.xz eclipse.platform.debug-4a173fdb6f68de75c6f14cbc9a03e0475a5ab3e4.zip |
bug 18494
Diffstat (limited to 'org.eclipse.debug.ui/ui')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java index 091bafd52..132196340 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java @@ -281,51 +281,4 @@ public class DebugUITools { return DebugUIPlugin.saveAndBuild();
}
- /**
- * Returns the launch configuration that is launched when the
- * debug button is pressed. This is also the launch configuration that
- * is selected by default when the launch configuration dialog
- * is opened. The debug UI plug-in updates the default launch
- * configuration on each launch, to be the last configuration
- * launched.
- *
- * @return the workspace default launch configuration, or
- * <code>null</code> if none.
- * @since 2.0
- */
- public ILaunchConfiguration getDefaultLaunchConfiguration() {
- LaunchConfigurationHistoryElement hist = LaunchConfigurationManager.getDefault().getLastLaunch();
- if (hist != null) {
- return hist.getLaunchConfiguration();
- }
- return null;
- }
-
- /**
- * Sets the launch configuration that is launched when the
- * debug button is pressed, or the launch configuration that
- * is selected by default when the launch configuration dialog
- * is opened. The debug UI plug-in updates the default launch
- * configuration on each launch, to be the last configuration
- * launched. Clients may override the defualt by calling this
- * method to prime the default launch configuration.
- *
- * @return the workspace default launch configuration; cannot
- * be <code>null</code>
- * @since 2.0
- */
- public void setDefaultLaunchConfiguration(ILaunchConfiguration configuration) {
- try {
- String mode = null;
- if (configuration.getType().supportsMode(ILaunchManager.DEBUG_MODE)) {
- mode = ILaunchManager.DEBUG_MODE;
- } else {
- mode = ILaunchManager.RUN_MODE;
- }
- ILaunch launch = new Launch(configuration, mode, null);
- LaunchConfigurationManager.getDefault().launchAdded(launch);
- } catch (CoreException e) {
- DebugUIPlugin.log(e);
- }
- }
}
\ No newline at end of file |