我在 eclipse cnf 中添加了一个选项,如下所述:
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="true"
objectClass="org.eclipse.core.resources.IProject"
nameFilter="*"
id="RemoteSync.contribution1">
<action
label="Enable RemoteSync"
class="remotesync.builder.ToggleNatureAction"
menubarPath="additions"
enablesFor="1"
id="RemoteSync.addRemoveNatureAction"
style="toggle">
</action>
</objectContribution>
Here enables for is set to 1. So it enables when 1 items is selected. 但是我想在 cnf 中没有选择任何内容时启用该操作。enable 的值应该是什么?