[英]Make a radio button in Eclipse plugin's menu
我有這個菜單,其中包含2個項目Compile and Run [如下面的屏幕快照所示]
我要以以下形式制作另一個菜單項:[Language->]和Language具有其他兩個項“ German”和“ French”,它們具有復選框或單選按鈕,因為我希望用戶檢查兩種語言之一,而我檢測到,以便我可以根據語言檢查進行一些更改
所以現在我需要2件事1-使用該格式制作菜單,並且必須對其進行檢查2-如何檢測已檢查的菜單
這是菜單的XML代碼
<plugin>
<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="Bachelor.actionSet"
label="New menu"
visible="true">
<menu
id="sampleMenu"
label="Localized">
<separator
name="sampleGroup">
</separator>
<groupMarker
name="content">
</groupMarker>
</menu>
<action
class="bachelor.actions.Compile"
icon="icons/sample.gif"
id="bachelor.actions.Compile"
label="&Compile"
menubarPath="sampleMenu/content"
toolbarPath="sampleGroup"
tooltip="Open the resource manager view">
</action>
<action
class="bachelor.actions.Run"
icon="icons/sample.gif"
id="bachelor.actions.Run"
label="&Run"
menubarPath="sampleMenu/content"
toolbarPath="sampleGroup"
tooltip="Open the resource manager view">
</action>
</actionSet>
</extension>
</plugin>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.