Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 166901 Details for
Bug 311474
[debug view] Provide a default command handler for the Restart command.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch that adds the restart command handler.
20100503_restart_command.patch (text/plain), 3.12 KB, created by
Pawel Piech
on 2010-05-04 00:17:25 EDT
(
hide
)
Description:
Patch that adds the restart command handler.
Filename:
MIME Type:
Creator:
Pawel Piech
Created:
2010-05-04 00:17:25 EDT
Size:
3.12 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.debug.ui >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.debug.ui/plugin.xml,v >retrieving revision 1.450 >diff -u -r1.450 plugin.xml >--- plugin.xml 27 Apr 2010 21:07:56 -0000 1.450 >+++ plugin.xml 4 May 2010 04:09:22 -0000 >@@ -2930,6 +2930,11 @@ > </iterate> > </activeWhen> > </handler> >+ <handler >+ class="org.eclipse.debug.internal.ui.commands.actions.RestartCommandHandler" >+ commandId="org.eclipse.debug.ui.commands.Restart" >+ helpContextId="restart_action_context"> >+ </handler> > </extension> > > </plugin> >Index: ui/org/eclipse/debug/internal/ui/commands/actions/RestartCommandAction.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/RestartCommandAction.java,v >retrieving revision 1.1 >diff -u -r1.1 RestartCommandAction.java >--- ui/org/eclipse/debug/internal/ui/commands/actions/RestartCommandAction.java 11 Sep 2009 18:54:30 -0000 1.1 >+++ ui/org/eclipse/debug/internal/ui/commands/actions/RestartCommandAction.java 4 May 2010 04:09:22 -0000 >@@ -18,12 +18,16 @@ > import org.eclipse.jface.resource.ImageDescriptor; > > /** >- * Handler for the >+ * Handler for the Restart action > * > * @since 3.6 > */ > public class RestartCommandAction extends DebugCommandAction { > >+ public RestartCommandAction() { >+ setActionDefinitionId("org.eclipse.debug.ui.commands.Restart"); //$NON-NLS-1$ >+ } >+ > protected Class getCommandType() { > return IRestartHandler.class; > } >Index: ui/org/eclipse/debug/internal/ui/commands/actions/RestartCommandHandler.java >=================================================================== >RCS file: ui/org/eclipse/debug/internal/ui/commands/actions/RestartCommandHandler.java >diff -N ui/org/eclipse/debug/internal/ui/commands/actions/RestartCommandHandler.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ ui/org/eclipse/debug/internal/ui/commands/actions/RestartCommandHandler.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,27 @@ >+/******************************************************************************* >+ * Copyright (c) 2009 Wind River Systems and others. >+ * All rights reserved. This program and the accompanying materials >+ * 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: >+ * Wind River Systems - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.debug.internal.ui.commands.actions; >+ >+import org.eclipse.debug.core.commands.IRestartHandler; >+import org.eclipse.debug.ui.actions.DebugCommandHandler; >+ >+/** >+ * Command candler for the restart command (to enable key-binding activation). >+ * >+ * @since 3.6 >+ */ >+public class RestartCommandHandler extends DebugCommandHandler { >+ >+ protected Class getCommandType() { >+ return IRestartHandler.class; >+ } >+ >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 311474
: 166901