Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Ferrazzutti2014-05-13 13:38:54 -0400
committerAlexander Kurtakov2014-05-14 02:03:20 -0400
commita7e9d3f7b0d1327403c868c0f7b201218a638238 (patch)
treeffb8fcf1a714847a2801c5b7ee17789f7e8e7d0c
parenteeffc291d31e449404a41afb75d6f10f0b48f96f (diff)
downloadorg.eclipse.linuxtools-a7e9d3f7b0d1327403c868c0f7b201218a638238.tar.gz
org.eclipse.linuxtools-a7e9d3f7b0d1327403c868c0f7b201218a638238.tar.xz
org.eclipse.linuxtools-a7e9d3f7b0d1327403c868c0f7b201218a638238.zip
Systemtap: Apply launch enablement restriction.
In stap's contextualLaunch enablement logic, reapply the check for IPathEditorInput that was removed by f663000; the changes made by 3002890 make this check appropriate again for limiting context-menu launches to script editors. Change-Id: I816eaa6699db35ecf4b5b767d2130ee85ae63abe Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com> Reviewed-on: https://git.eclipse.org/r/26472 Tested-by: Hudson CI Reviewed-by: Alexander Kurtakov <akurtako@redhat.com> Tested-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml17
1 files changed, 11 insertions, 6 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml
index 6b98fb3b9a..1ea6facc0f 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml
@@ -440,12 +440,17 @@
value="*.stp">
</test>
</and>
- <with
- variable="activeEditorId">
- <equals
- value="org.eclipse.linuxtools.internal.systemtap.ui.ide.editors.stp.STPEditor">
- </equals>
- </with>
+ <and>
+ <instanceof
+ value="org.eclipse.ui.IPathEditorInput">
+ </instanceof>
+ <with
+ variable="activeEditorId">
+ <equals
+ value="org.eclipse.linuxtools.internal.systemtap.ui.ide.editors.stp.STPEditor">
+ </equals>
+ </with>
+ </and>
</or>
</iterate>
</with>

Back to the top