diff options
author | Andrey Loskutov | 2017-01-09 13:12:58 +0000 |
---|---|---|
committer | Andrey Loskutov | 2017-01-13 20:56:39 +0000 |
commit | ebb2566c95427e5c7cffd5e27f1e910b0a187b17 (patch) | |
tree | f9b87db9c4ccf476dfb8c8d4b5fcfcfd3f871bbb /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AddToFavoritesAction.java | |
parent | 1c1d17b82a223fb8fcc69b4883a71b8744899ccb (diff) | |
download | eclipse.platform.debug-ebb2566c95427e5c7cffd5e27f1e910b0a187b17.tar.gz eclipse.platform.debug-ebb2566c95427e5c7cffd5e27f1e910b0a187b17.tar.xz eclipse.platform.debug-ebb2566c95427e5c7cffd5e27f1e910b0a187b17.zip |
Bug 510100 - [cleanup] Get rid of trailing white space in platform.debugY20170119-1000I20170119-2000I20170119-1010I20170119-0345I20170118-2000I20170118-1215I20170117-2000I20170116-2000I20170115-2000I20170114-2000I20170113-2000
Also enabled "cleanup whitespace on save" actions for debug.ui and
debug.tests bundles.
Change-Id: I755b879ab1d49144a1bec3f4318dbb8b29521bb3
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AddToFavoritesAction.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AddToFavoritesAction.java | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AddToFavoritesAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AddToFavoritesAction.java index aaa58be3c..5c896783e 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AddToFavoritesAction.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AddToFavoritesAction.java @@ -39,7 +39,7 @@ import com.ibm.icu.text.MessageFormat; * Adds the selected launch configuration to the launch favorites. */ public class AddToFavoritesAction extends SelectionListenerAction { - + private ILaunchConfiguration fConfiguration = null; private String fMode =null; private ILaunchGroup fGroup = null; @@ -65,7 +65,7 @@ public class AddToFavoritesAction extends SelectionListenerAction { Object object = selection.getFirstElement(); ILaunch launch = null; if (object instanceof IAdaptable) { - launch = ((IAdaptable)object).getAdapter(ILaunch.class); + launch = ((IAdaptable)object).getAdapter(ILaunch.class); } if (launch == null) { if (object instanceof ILaunch) { @@ -85,21 +85,21 @@ public class AddToFavoritesAction extends SelectionListenerAction { } setGroup(group); setLaunchConfiguration(configuration); - setMode(launch.getLaunchMode()); + setMode(launch.getLaunchMode()); setText(MessageFormat.format(ActionMessages.AddToFavoritesAction_1, new Object[] { DebugUIPlugin.removeAccelerators(getGroup().getLabel()) })); } } } - + // Disable the action if the launch config is private ILaunchConfiguration config = getLaunchConfiguration(); if (config == null) { return false; - } + } if (DebugUITools.isPrivate(config)) { return false; } - + if (getGroup() != null) { try { List<String> groups = config.getAttribute(IDebugUIConstants.ATTR_FAVORITE_GROUPS, (List<String>) null); @@ -109,9 +109,9 @@ public class AddToFavoritesAction extends SelectionListenerAction { return true; } catch (CoreException e) { } - + } - + return false; } @@ -122,7 +122,7 @@ public class AddToFavoritesAction extends SelectionListenerAction { protected void setLaunchConfiguration(ILaunchConfiguration configuration) { fConfiguration = configuration; } - + /** * Returns the underlying <code>ILaunchConfiguration</code> * @return the underlying <code>ILaunchConfiguration</code> @@ -130,7 +130,7 @@ public class AddToFavoritesAction extends SelectionListenerAction { protected ILaunchConfiguration getLaunchConfiguration() { return fConfiguration; } - + /** * Sets the mode this action applies to * @param mode the modes to set @@ -138,7 +138,7 @@ public class AddToFavoritesAction extends SelectionListenerAction { protected void setMode(String mode) { fMode = mode; } - + /** * Returns the mode this action applies to * @return the {@link ILaunchMode} this action applies to @@ -146,7 +146,7 @@ public class AddToFavoritesAction extends SelectionListenerAction { protected String getMode() { return fMode; } - + /** * Sets the <code>ILaunchGroup</code> this action applies to * @param group the new <code>ILaunchGroup</code> @@ -154,7 +154,7 @@ public class AddToFavoritesAction extends SelectionListenerAction { protected void setGroup(ILaunchGroup group) { fGroup = group; } - + /** * Returns the underlying <code>ILaunchGroup</code> * @return the underlying <code>ILaunchGroup</code> @@ -162,7 +162,7 @@ public class AddToFavoritesAction extends SelectionListenerAction { protected ILaunchGroup getGroup() { return fGroup; } - + /** * @see org.eclipse.jface.action.IAction#run() */ @@ -188,7 +188,7 @@ public class AddToFavoritesAction extends SelectionListenerAction { } }); if (ex[0] != null) { - DebugUIPlugin.errorDialog(DebugUIPlugin.getShell(), ActionMessages.AddToFavoritesAction_2, ActionMessages.AddToFavoritesAction_3, ex[0].getStatus()); // + DebugUIPlugin.errorDialog(DebugUIPlugin.getShell(), ActionMessages.AddToFavoritesAction_2, ActionMessages.AddToFavoritesAction_3, ex[0].getStatus()); // } } |