plugin menu [message #465262] |
Tue, 27 March 2007 11:01 |
Eclipse User |
|
|
|
Originally posted by: m.hybler.aegis.cz
I have problem with menu declared in my plugin. I have application which
integrated my plugin. plugin has delcared menu in this part of plugin.xml.
<extension
point="org.eclipse.ui.actionSets">
<actionSet
description="Pro trideni stromu a zakladni operace
delete a insert"
id="cz.aegis.cms.viewer.actionSet"
label="ActionSet"
visible="true">
<menu
id="cz.aegis.cms.viewer.trideniMenu"
label="Třídění"
path="additions">
<separator name="slot1"/>
</menu>
<menu
id="cz.aegis.cms.viewer.operaceMenu"
label="Operace"
path="additions">
<separator name="slot2"/>
</menu>
<action
class="cz.aegis.cms.sorting.Search"
id="cz.aegis.cms.sorting.Search"
label="Třídit dle vlastností"
menubarPath="cz.aegis.cms.viewer.trideniMenu/slot1"
style="push"
tooltip="Slouzi k trideni stromu pro lepsi prehlednost"/>
<action
class="cz.aegis.cms.viewer.DeleteNode"
definitionId="cz.aegis.cms.viewer.deleteCommand"
id="cz.aegis.cms.DeleteNode"
label="Smazat"
menubarPath="cz.aegis.cms.viewer.operaceMenu/slot2"
style="push"
tooltip="Mazani slozek nebo souboru"/>
<action
class="cz.aegis.cms.viewer.ImportFile"
definitionId="cz.aegis.cms.viewer.importCommand"
id="cz.aegis.cms.ImportFile"
label="Importovat soubor"
menubarPath="cz.aegis.cms.viewer.operaceMenu/slot2"
style="push"
tooltip="Import souboru do CMS"/>
</actionSet>
<actionSet
description="Pro ukladani a mazani ulozenych view"
id="cz.aegis.cms.viewer.actionSet2"
label="ActionSet2"
visible="true">
<menu
id="cz.aegis.cms.viewer.ulozeneViewMenu"
label="Ulozene view"
path="additions">
<separator name="slot3"/>
</menu>
<action
class="cz.aegis.cms.sorting.RemoveConfig"
id="cz.aegis.cms.viewer.removeConfig"
label="Odeber Konfiguraci"
menubarPath="cz.aegis.cms.viewer.ulozeneViewMenu/slot3"
style="push"/>
<action
class="cz.aegis.cms.sorting.AddConfig"
id="cz.aegis.cms.viewer.addConfig"
label="Pridej Konfiguraci"
menubarPath="cz.aegis.cms.viewer.ulozeneViewMenu/slot3"
state="false"
style="push"/>
</actionSet>
</extension>
If I run my application this menu is visible with the menu defined in
the apllication. I need that menu will be hidden if perspective of
plugin is inactive vice versa. How can I do it?
Thanks for help Michal
|
|
|
|
Powered by
FUDForum. Page generated in 0.03617 seconds