Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2017-01-09 13:12:58 +0000
committerAndrey Loskutov2017-01-13 20:56:39 +0000
commitebb2566c95427e5c7cffd5e27f1e910b0a187b17 (patch)
treef9b87db9c4ccf476dfb8c8d4b5fcfcfd3f871bbb /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java
parent1c1d17b82a223fb8fcc69b4883a71b8744899ccb (diff)
downloadeclipse.platform.debug-ebb2566c95427e5c7cffd5e27f1e910b0a187b17.tar.gz
eclipse.platform.debug-ebb2566c95427e5c7cffd5e27f1e910b0a187b17.tar.xz
eclipse.platform.debug-ebb2566c95427e5c7cffd5e27f1e910b0a187b17.zip
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/RetargetRunToLineAction.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java
index 759d55e5d..cdbd7b2c1 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RetargetRunToLineAction.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
* Wind River - Pawel Piech - Added use of adapters to support non-standard models (bug 213074)
@@ -27,14 +27,14 @@ import org.eclipse.ui.IWorkbenchWindow;
/**
* Global retargettable run to line action.
- *
+ *
* @since 3.0
*/
public class RetargetRunToLineAction extends RetargetAction {
-
+
private DebugContextListener fContextListener = new DebugContextListener();
private ISuspendResume fTargetElement = null;
-
+
class DebugContextListener implements IDebugContextListener {
protected void contextActivated(ISelection selection) {
@@ -56,10 +56,10 @@ public class RetargetRunToLineAction extends RetargetAction {
public void debugContextChanged(DebugContextEvent event) {
contextActivated(event.getContext());
}
-
-
+
+
}
-
+
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
*/
@@ -79,13 +79,13 @@ public class RetargetRunToLineAction extends RetargetAction {
ISelection activeContext = service.getActiveContext();
fContextListener.contextActivated(activeContext);
}
-
+
@Override
public void init(IAction action) {
super.init(action);
action.setActionDefinitionId("org.eclipse.debug.ui.commands.RunToLine"); //$NON-NLS-1$
}
-
+
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.RetargetAction#canPerformAction(java.lang.Object, org.eclipse.jface.viewers.ISelection, org.eclipse.ui.IWorkbenchPart)
*/
@@ -94,7 +94,7 @@ public class RetargetRunToLineAction extends RetargetAction {
return fTargetElement != null &&
((IRunToLineTarget)target).canRunToLine(part, selection, fTargetElement);
}
-
+
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.RetargetAction#getAdapterClass()
*/
@@ -109,15 +109,15 @@ public class RetargetRunToLineAction extends RetargetAction {
protected void performAction(Object target, ISelection selection, IWorkbenchPart part) throws CoreException {
((IRunToLineTarget)target).runToLine(part, selection, fTargetElement);
}
-
+
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.RetargetAction#getOperationUnavailableMessage()
*/
@Override
protected String getOperationUnavailableMessage() {
return ActionMessages.RetargetRunToLineAction_0;
- }
-
+ }
+
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
@@ -128,5 +128,5 @@ public class RetargetRunToLineAction extends RetargetAction {
} else {
super.selectionChanged(action, selection);
}
- }
+ }
}

Back to the top