diff options
author | Kevin Barnes | 2005-09-28 16:06:26 +0000 |
---|---|---|
committer | Kevin Barnes | 2005-09-28 16:06:26 +0000 |
commit | 05a74fa93f99c7e2502724f4920ff117570c4263 (patch) | |
tree | 1dd13a227fb25a9518acac59f94ab69a62ca85d8 /org.eclipse.debug.core | |
parent | 3f3020406277f1c6bb2b6ccbcecba00abe0bad2d (diff) | |
download | eclipse.platform.debug-05a74fa93f99c7e2502724f4920ff117570c4263.tar.gz eclipse.platform.debug-05a74fa93f99c7e2502724f4920ff117570c4263.tar.xz eclipse.platform.debug-05a74fa93f99c7e2502724f4920ff117570c4263.zip |
Bug 79709 - Centralize launching preferences
Diffstat (limited to 'org.eclipse.debug.core')
-rw-r--r-- | org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchConfigurationType.java | 11 | ||||
-rw-r--r-- | org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationType.java | 12 |
2 files changed, 23 insertions, 0 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchConfigurationType.java b/org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchConfigurationType.java index 2dff04d70..aa5974a6f 100644 --- a/org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchConfigurationType.java +++ b/org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchConfigurationType.java @@ -11,6 +11,8 @@ package org.eclipse.debug.core; +import java.util.Set; + import org.eclipse.core.resources.IContainer; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IAdaptable; @@ -213,4 +215,13 @@ public interface ILaunchConfigurationType extends IAdaptable { * @since 3.0 */ public String getPluginIdentifier(); + + /** + * Returns all of the registered supported modes for this launch configuration type. + * This method does not return null. + * + * @return the set of all supported modes + * @since 3.2 + */ + public Set getSupportedModes(); } diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationType.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationType.java index 9e057c90c..0042f4160 100644 --- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationType.java +++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationType.java @@ -119,6 +119,18 @@ public class LaunchConfigurationType extends PlatformObject implements ILaunchCo } /** + * Returns all of the modes supported by this launch configuration type + * fix for bug 79709 + * @return the complete listing of supported modes for this launch configuration + * @since 3.2 + */ + public Set getSupportedModes() { + HashSet modes = new HashSet(getBaseModes()); + modes.addAll(getContributedModes()); + return modes; + }//end getSupportedModes + + /** * Returns the set of modes delegates have been contributed for * * @return the set of modes delegates have been contributed for |