Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2002-04-18 02:40:24 +0000
committerDarin Swanson2002-04-18 02:40:24 +0000
commitee830cdb05690574a6449119091e17fc8ea5ecf0 (patch)
treead526dc1cd1758c42083375e73104220085715ca /org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugView.java
parent2ff45562dea125ff9ff0c6f21b3c165381ea8331 (diff)
downloadeclipse.platform.debug-ee830cdb05690574a6449119091e17fc8ea5ecf0.tar.gz
eclipse.platform.debug-ee830cdb05690574a6449119091e17fc8ea5ecf0.tar.xz
eclipse.platform.debug-ee830cdb05690574a6449119091e17fc8ea5ecf0.zip
Bug 12953 - Action "type" constants should be moved from AbstractDebugView to IDebugView
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugView.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugView.java75
1 files changed, 75 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugView.java
index dd9c23cad..56ea5dd6c 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugView.java
@@ -9,6 +9,7 @@ import org.eclipse.jface.action.IAction;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.texteditor.ITextEditorActionConstants;
/**
* Common function for debug views. Provides access to underlying viewer and
@@ -28,6 +29,76 @@ import org.eclipse.ui.IViewPart;
public interface IDebugView extends IViewPart {
/**
+ * Action id for a view's copy action. Any view
+ * with a copy action that should be invoked when
+ * ctrl+c is pressed should store their
+ * copy action with this key.
+ *
+ * @see #setAction(String, IAction)
+ */
+ public static final String COPY_ACTION = ITextEditorActionConstants.COPY;
+
+ /**
+ * Action id for a view's cut action. Any view
+ * with a cut action that should be invoked when
+ * ctrl+x is pressed should store their
+ * copy action with this key.
+ *
+ * @see #setAction(String, IAction)
+ */
+ public static final String CUT_ACTION = ITextEditorActionConstants.CUT;
+
+ /**
+ * Action id for a view's double-click action. Any view
+ * with an action that should be invoked when
+ * the mouse is double-clicked should store their
+ * action with this key.
+ *
+ * @see #setAction(String, IAction)
+ */
+ public static final String DOUBLE_CLICK_ACTION = "Double_Click_ActionId"; //$NON-NLS-1$
+
+ /**
+ * Action id for a view's find action. Any view
+ * with a paste action that should be invoked when
+ * ctrl+f is pressed should store their
+ * copy action with this key.
+ *
+ * @see #setAction(String, IAction)
+ */
+ public static final String FIND_ACTION = ITextEditorActionConstants.FIND;
+
+ /**
+ * Action id for a view's paste action. Any view
+ * with a paste action that should be invoked when
+ * ctrl+v is pressed should store their
+ * copy action with this key.
+ *
+ * @see #setAction(String, IAction)
+ */
+ public static final String PASTE_ACTION = ITextEditorActionConstants.PASTE;
+
+ /**
+ * Action id for a view's remove action. Any view
+ * with a remove action that should be invoked when
+ * the delete key is pressed should store their
+ * remove action with this key.
+ *
+ * @see #setAction(String, IAction)
+ */
+ public static final String REMOVE_ACTION = "Remove_ActionId"; //$NON-NLS-1$
+
+ /**
+ * Action id for a view's select all action. Any view
+ * with a select all action that should be invoked when
+ * ctrl+a is pressed should store their
+ * select all action with this key.
+ *
+ * @see #setAction(String, IAction)
+ */
+ public static final String SELECT_ALL_ACTION = ITextEditorActionConstants.SELECT_ALL;
+
+ /**
* Returns the viewer contained in this debug view.
*
* @return viewer
@@ -48,6 +119,10 @@ public interface IDebugView extends IViewPart {
/**
* Installs the given action under the given action id.
*
+ * If the action has an id that maps to one of the global
+ * action ids defined by this interface, the action is registered
+ * as a global action handler.
+ *
* @param actionId the action id
* @param action the action, or <code>null</code> to clear it
* @see #getAction

Back to the top