[yocto] [PATCH 7/7] plugins/sdk.ide: Add profile switch menu to the project menu
Timo Mueller
mail at timomueller.eu
Thu Jun 13 06:30:28 PDT 2013
From: Timo Mueller <timo.mueller at bmw-carit.de>
If a project with a yocto nature is selected, the project menu will
show a target profile menu which allows the user to switch the used
target profile of the project.
Signed-off-by: Timo Mueller <timo.mueller at bmw-carit.de>
---
plugins/org.yocto.sdk.ide/plugin.xml | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/plugins/org.yocto.sdk.ide/plugin.xml b/plugins/org.yocto.sdk.ide/plugin.xml
index 9ff8473..c766ba2 100644
--- a/plugins/org.yocto.sdk.ide/plugin.xml
+++ b/plugins/org.yocto.sdk.ide/plugin.xml
@@ -247,6 +247,15 @@
point="org.eclipse.ui.menus">
<menuContribution
allPopups="true"
+ locationURI="menu:project">
+ <menu
+ id="org.yocto.sdk.ide.profiles.menu"
+ label="%command.targetProfileSwitch.label"
+ tooltip="%command.targetProfileSwitch.description">
+ </menu>
+ </menuContribution>
+ <menuContribution
+ allPopups="true"
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar
id="org.yocto.sdk.ide.profiles.toolbar">
@@ -280,6 +289,27 @@
</menuContribution>
<menuContribution
allPopups="false"
+ locationURI="menu:org.yocto.sdk.ide.profiles.menu">
+ <command
+ commandId="org.yocto.sdk.ide.targetProfile.switch"
+ label="%command.targetProfileSwitch.projectSpeficic.label"
+ style="radio">
+ <parameter
+ name="org.eclipse.ui.commands.radioStateParameter"
+ value="project-specific">
+ </parameter>
+ </command>
+ <separator
+ name="org.yocto.sdk.ide.profiles.separator"
+ visible="true">
+ </separator>
+ <dynamic
+ class="org.yocto.sdk.ide.TargetProfileContributionItem"
+ id="org.yocto.sdk.ide.dynamic.targetProfile">
+ </dynamic>
+ </menuContribution>
+ <menuContribution
+ allPopups="false"
locationURI="menu:org.yocto.sdk.ide.profiles.toolbar.dropdown">
<command
commandId="org.yocto.sdk.ide.targetProfile.switch"
--
1.8.1.4
More information about the yocto
mailing list