- id="mograsimNature"
- name="%extension.name.0"
- point="org.eclipse.core.resources.natures">
- <runtime>
- <run
- class="net.mograsim.plugin.nature.MograsimNature">
- </run>
- </runtime>
- <builder
- id="net.mograsim.plugin.nature.mograsimBuilder">
- </builder>
- </extension>
- <extension
- point="org.eclipse.ui.commands">
- <category
- id="net.mograsim.plugin.mograsimNature.category"
- name="%category.name.0">
- </category>
- <command
- categoryId="net.mograsim.plugin.mograsimNature.category"
- defaultHandler="net.mograsim.plugin.nature.AddRemoveMograsimNatureHandler"
- id="net.mograsim.plugin.addRemoveMograsimNature"
- name="%command.name">
- </command>
- </extension>
- <extension
- point="org.eclipse.ui.menus">
- <menuContribution
- locationURI="popup:org.eclipse.ui.projectConfigure?after=additions">
- <command
- commandId="net.mograsim.plugin.addRemoveMograsimNature"
- label="%command.label"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <with
- variable="selection">
- <count
- value="1">
- </count>
- <iterate>
- <adapt
- type="org.eclipse.core.resources.IProject">
- <test
- property="org.eclipse.core.resources.projectNature"
- value="net.mograsim.plugin.mograsimNature">
- </test>
- </adapt>
- </iterate>
- </with>
- </visibleWhen>
- </command>
- <command
- commandId="net.mograsim.plugin.addRemoveMograsimNature"
- label="%command.label.0"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <with
- variable="selection">
- <count
- value="1">
- </count>
- <iterate>
- <adapt
- type="org.eclipse.core.resources.IProject">
- <not>
- <test
- property="org.eclipse.core.resources.projectNature"
- value="net.mograsim.plugin.mograsimNature">
- </test>
- </not>
- </adapt>
- </iterate>
- </with>
- </visibleWhen>
- </command>
- </menuContribution>
- </extension>
- <extension
- id="xmlProblem"