diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupExtension.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupExtension.java | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupExtension.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupExtension.java index dae26a1ee..e761b30f4 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupExtension.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupExtension.java @@ -10,7 +10,7 @@ *******************************************************************************/ package org.eclipse.debug.internal.ui.launchConfigurations; - + import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; @@ -30,33 +30,33 @@ import org.eclipse.debug.ui.ILaunchConfigurationTabGroup; * Proxy to a launch configuration tab group element */ public class LaunchConfigurationTabGroupExtension { - + /** * The configuration element defining this tab group. */ private IConfigurationElement fConfig = null; - + /** * A list of sets of modes that this tab group supports * @since 3.3 */ private List<Set<String>> fModes = null; - + /** * A map of mode sets to descriptions * @since 3.3 */ private Map<Set<String>, String> fDescriptions = null; - + /** * Perspectives for each mode */ private Map<Set<String>, String> fPerspectives = null; - + /** * Constructs a launch configuration tab extension based * on the given configuration element - * + * * @param element the configuration element defining the * attributes of this launch configuration tab extension * @return a new launch configuration tab extension @@ -64,32 +64,32 @@ public class LaunchConfigurationTabGroupExtension { public LaunchConfigurationTabGroupExtension(IConfigurationElement element) { setConfigurationElement(element); } - + /** * Sets the configuration element that defines the attributes * for this launch configuration tab group extension. - * + * * @param element configuration element */ private void setConfigurationElement(IConfigurationElement element) { fConfig = element; } - + /** * Returns the configuration element that defines the attributes * for this launch configuration tab group extension. - * + * * @param configuration element that defines the attributes * for this launch configuration tab extension */ protected IConfigurationElement getConfigurationElement() { return fConfig; } - + /** * Returns the set of modes specified in the configuration data, or <code>null</code> * if none (i.e. default tab group) - * + * * @return the set of modes specified in the configuration data, or * <code>null</code> */ @@ -117,11 +117,11 @@ public class LaunchConfigurationTabGroupExtension { } return fModes; } - + /** * Returns the perspective associated with the given launch * mode, as specified in plug-in XML, or <code>null</code> if none. - * + * * @param modes the set of launch modes * @return perspective identifier, or <code>null</code> */ @@ -129,49 +129,49 @@ public class LaunchConfigurationTabGroupExtension { getModes(); return fPerspectives.get(modes); } - + /** * Returns the identifier of the type of launch configuration this * tab group is associated with - * + * * @return the identifier of the type of launch configuration this * tab group is associated with - */ + */ protected String getTypeIdentifier() { return getConfigurationElement().getAttribute(IConfigurationElementConstants.TYPE); } - + /** * Returns the identifier of the help context associated with this tab * group, or <code>null</code> if one was not specified. - * + * * @return the identifier of this tab group's help context or * <code>null</code> * @since 2.1 - */ + */ protected String getHelpContextId() { - return getConfigurationElement().getAttribute(IConfigurationElementConstants.HELP_CONTEXT_ID); + return getConfigurationElement().getAttribute(IConfigurationElementConstants.HELP_CONTEXT_ID); } - + /** * Returns the identifier of the tab group * @return the id of the tab group - * + * * @since 3.3 */ protected String getIdentifier() { - return getConfigurationElement().getAttribute(IConfigurationElementConstants.ID); + return getConfigurationElement().getAttribute(IConfigurationElementConstants.ID); } - + /** * Returns a new tab group defined by this extension - * + * * @return a new tab group defined by this extension * @exception CoreException if an exception occurs instantiating * the tab group */ public ILaunchConfigurationTabGroup newTabGroup() throws CoreException { - return (ILaunchConfigurationTabGroup)getConfigurationElement().createExecutableExtension(IConfigurationElementConstants.CLASS); + return (ILaunchConfigurationTabGroup)getConfigurationElement().createExecutableExtension(IConfigurationElementConstants.CLASS); } /** @@ -201,15 +201,15 @@ public class LaunchConfigurationTabGroupExtension { fDescriptions.put(set, description); } } - - } + + } description = fDescriptions.get(modes); if(description == null) { description = fConfig.getAttribute(IConfigurationElementConstants.DESCRIPTION); - + } return (description == null ? IInternalDebugCoreConstants.EMPTY_STRING : description); } - + } |