Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Ferrazzutti2013-11-26 15:26:29 -0500
committerAndrew Ferrazzutti2013-12-02 15:28:50 -0500
commitebb6be3fc9768515ae614aef17612e032dd1f2ac (patch)
treeb3ba423220ff6a3caee72018a424b8c7225ed8ed
parentf130cacb2e3c98e89ec8570d31d8840eadb7937f (diff)
downloadorg.eclipse.linuxtools-ebb6be3fc9768515ae614aef17612e032dd1f2ac.tar.gz
org.eclipse.linuxtools-ebb6be3fc9768515ae614aef17612e032dd1f2ac.tar.xz
org.eclipse.linuxtools-ebb6be3fc9768515ae614aef17612e032dd1f2ac.zip
Systemtap: improve visibility of "run" menu items.
"Run" buttons on the toolbar now appear properly. For instance, the simple Systemtap "run" button now only appears when editing a Systemtap script, and the Run/Debug buttons are now visible while editing a Systemtap script in the ST IDE. Change-Id: I57e9bfa3b7e81425f11df817729796ed0a92dc05 Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com> Reviewed-on: https://git.eclipse.org/r/18994 Tested-by: Hudson CI Reviewed-by: Roland Grunberg <rgrunber@redhat.com> IP-Clean: Roland Grunberg <rgrunber@redhat.com> Tested-by: Roland Grunberg <rgrunber@redhat.com> Reviewed-on: https://git.eclipse.org/r/19157
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.properties7
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml8
2 files changed, 12 insertions, 3 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.properties b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.properties
index 9a259e52f2..a2155f4002 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.properties
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.properties
@@ -46,8 +46,11 @@ action.import.name=Import Tapset...
action.import.desc=Import tapset directory
action.runOptions.name=Run w/Options
action.runOptions.desc=Run the Script w/Options
-action.run.name=Run
-action.run.desc=Run the Script
+action.run.name=Simple Run
+action.run.desc=Run the script without options/charts
+
+launch.run.name=SystemTap Script
+launch.run.desc=Run SystemTap script with project launch options
action.runChart.name=Run w/Chart
action.runChart.desc=Run the Script w/Chart
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml
index c630cc1ac2..7f7325e51d 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml
@@ -63,6 +63,9 @@
icon="icons/actions/run/run_exc.gif"
label="%action.run.name"
style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
</command>
</menuContribution>
<menuContribution
@@ -269,6 +272,7 @@
targetID="org.eclipse.linuxtools.systemtap.ui.ide.IDEPerspective">
<actionSet id="org.eclipse.linuxtools.systemtap.ui.editor.FileActionSet"/>
<actionSet id="org.eclipse.linuxtools.systemtap.ui.ide.FileActionSet"/>
+ <actionSet id="org.eclipse.debug.ui.launchActionSet"/>
</perspectiveExtension>
<perspectiveExtension
@@ -306,7 +310,9 @@
<shortcut
class="org.eclipse.linuxtools.internal.systemtap.ui.ide.launcher.SystemTapScriptLaunchShortcut"
id="org.eclipse.linuxtools.systemtap.ui.ide.StapLaunchShortcut"
- label="Systemtap Script"
+ label="%launch.run.name"
+ description="%launch.run.desc"
+ icon="icons/smileytap_small.gif"
modes="run">
<contextualLaunch>
<enablement>

Back to the top