Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchShortcutExtension.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchShortcutExtension.java58
1 files changed, 29 insertions, 29 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchShortcutExtension.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchShortcutExtension.java
index adbb16e75..e8b188773 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchShortcutExtension.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchShortcutExtension.java
@@ -68,29 +68,29 @@ public class LaunchShortcutExtension implements ILaunchShortcut2, IPluginContrib
* Command handler for launch shortcut key binding.
*/
private class LaunchCommandHandler extends AbstractHandler {
- // the shortcut to invoke
- private LaunchShortcutExtension fShortcut;
- private String fMode;
-
- /**
- * Constructs a new command handler for the given shortcut
- *
- * @param shortcut
- */
- public LaunchCommandHandler(LaunchShortcutExtension shortcut, String mode) {
- fShortcut = shortcut;
- fMode = mode;
- }
+ // the shortcut to invoke
+ private LaunchShortcutExtension fShortcut;
+ private String fMode;
+
+ /**
+ * Constructs a new command handler for the given shortcut
+ *
+ * @param shortcut
+ */
+ public LaunchCommandHandler(LaunchShortcutExtension shortcut, String mode) {
+ fShortcut = shortcut;
+ fMode = mode;
+ }
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
- LaunchShortcutAction action = new LaunchShortcutAction(fMode, fShortcut);
- if (action.isEnabled()) {
- action.run();
- } else {
- fShortcut.launch(new StructuredSelection(), fMode);
- }
- return null;
+ LaunchShortcutAction action = new LaunchShortcutAction(fMode, fShortcut);
+ if (action.isEnabled()) {
+ action.run();
+ } else {
+ fShortcut.launch(new StructuredSelection(), fMode);
+ }
+ return null;
}
}
@@ -116,16 +116,16 @@ public class LaunchShortcutExtension implements ILaunchShortcut2, IPluginContrib
/**
* Registers command handlers for launch shortcut key bindings
*/
- private void registerLaunchCommandHandlers() {
- IHandlerService handlerService = PlatformUI.getWorkbench().getAdapter(IHandlerService.class);
- if(handlerService != null) {
+ private void registerLaunchCommandHandlers() {
+ IHandlerService handlerService = PlatformUI.getWorkbench().getAdapter(IHandlerService.class);
+ if(handlerService != null) {
for (String mode : getModes()) {
- String id = getId() + "." + mode; //$NON-NLS-1$
- IHandler handler = new LaunchCommandHandler(this, mode);
- handlerService.activateHandler(id, handler);
- }
- }
- }
+ String id = getId() + "." + mode; //$NON-NLS-1$
+ IHandler handler = new LaunchCommandHandler(this, mode);
+ handlerService.activateHandler(id, handler);
+ }
+ }
+ }
/**
* Sets the configuration element that defines the attributes

Back to the top