Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Liu2013-10-03 19:10:48 +0000
committerGerrit Code Review @ Eclipse.org2013-11-21 21:33:07 +0000
commit174e3d31c9f41dff956337e27b15e1d87eaa0e86 (patch)
tree830d1a65f465c31b1087dc9a5ee7c3886e7652cc
parent203703730091fd804fee1822e0c9938184af7d33 (diff)
downloadorg.eclipse.ptp-174e3d31c9f41dff956337e27b15e1d87eaa0e86.tar.gz
org.eclipse.ptp-174e3d31c9f41dff956337e27b15e1d87eaa0e86.tar.xz
org.eclipse.ptp-174e3d31c9f41dff956337e27b15e1d87eaa0e86.zip
[407003] Added a context menu to invoke the plugin when a file is selected.
The item in the context menu is one command, label is "PerfSuite Feedback". It is visible only when the file name is "*.xml". The content is modeled after ptp.rdt.sync.ui's plugin.xml -- Beth pointed this out to me. Tested with a local and a remote project. Signed-off-by: Rui Liu <ruiliu@ncsa.illinois.edu>
-rw-r--r--tools/etfw/org.eclipse.ptp.etfw.feedback.perfsuite/plugin.xml33
1 files changed, 31 insertions, 2 deletions
diff --git a/tools/etfw/org.eclipse.ptp.etfw.feedback.perfsuite/plugin.xml b/tools/etfw/org.eclipse.ptp.etfw.feedback.perfsuite/plugin.xml
index d50d22095..684e8c0fc 100644
--- a/tools/etfw/org.eclipse.ptp.etfw.feedback.perfsuite/plugin.xml
+++ b/tools/etfw/org.eclipse.ptp.etfw.feedback.perfsuite/plugin.xml
@@ -142,6 +142,35 @@
symbolicIcon="info">
</specification>
</extension>
-
-
+
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="popup:org.eclipse.ui.popup.any?after=buildGroup">
+ <command
+ commandId="org.eclipse.ptp.etfw.feedback.actions.commands.perfsuiteCommand"
+ mnemonic="P"
+ id="org.eclipse.ptp.etfw.feedback.actions.menus.perfsuiteCommand">
+ <visibleWhen
+ checkEnabled="false">
+ <with
+ variable="activeMenuSelection">
+ <count
+ value="1">
+ </count>
+ <iterate>
+ <adapt
+ type="org.eclipse.core.resources.IResource">
+ <test
+ property="org.eclipse.core.resources.name"
+ value="*.xml">
+ </test>
+ </adapt>
+ </iterate>
+ </with>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ </extension>
+
</plugin>

Back to the top