Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/IViewActionProvider.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/IViewActionProvider.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/IViewActionProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/IViewActionProvider.java
new file mode 100644
index 000000000..b493d2ac8
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/IViewActionProvider.java
@@ -0,0 +1,34 @@
+/*****************************************************************
+ * Copyright (c) 2012 Texas Instruments 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:
+ * Texas Instruments - View action override (Bug 344023)
+ *****************************************************************/
+package org.eclipse.debug.internal.ui.viewers.model.provisional;
+
+import org.eclipse.jface.action.IAction;
+
+
+/**
+ * Action provider allows a debug model to override the standard actions in the
+ * variables view. The client should return this provider as an adapter to the
+ * input element of the variables view.
+ *
+ * @since 3.8
+ */
+public interface IViewActionProvider {
+ /**
+ * Get action for a given presentation context and action id. Implementation
+ * should return an action implementation appropriate for given view and action ID.
+ * The implementation may register itself as listener to presentation context
+ * to determine when to dispose the returned action.
+ * @param presentationContext presentation context
+ * @param actionID action id
+ * @return action or null
+ */
+ public IAction getAction(IPresentationContext presentationContext, String actionID);
+}

Back to the top