| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <plugin> |
| <extension-point id="org.eclipse.gendoc.wizard.runner" name="GendocPoint" schema="schema/org.eclipse.gendoc.wizard.runner.exsd"/> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| allPopups="false" |
| locationURI="popup:org.eclipse.ui.popup.any"> |
| <command |
| commandId="org.eclipse.gendoc.script" |
| icon="icons/gendoc16.ico" |
| label="Generate Documentation using Gendoc" |
| style="push" |
| tooltip="Use Gendoc to generate documentation from model"> |
| <visibleWhen |
| checkEnabled="false"> |
| <iterate |
| ifEmpty="false"> |
| <and> |
| <or> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.gendoc.wizard.isEnabled"> |
| </test> |
| <adapt |
| type="java.util.Collection"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.gendoc.wizard.isCollectionEnabled"> |
| </test> |
| </adapt> |
| <adapt |
| type="org.eclipse.emf.ecore.EObject"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.gendoc.wizard.isEnabled"> |
| </test> |
| </adapt> |
| </or> |
| <not> |
| <adapt |
| type="org.eclipse.core.resources.IFile"> |
| </adapt> |
| </not> |
| </and> |
| </iterate> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| <extension |
| point="org.eclipse.core.expressions.propertyTesters"> |
| <propertyTester |
| class="org.eclipse.gendoc.wizard.WizardPropertyTester" |
| id="org.eclipse.gendoc.wizard.propertytester" |
| namespace="org.eclipse.gendoc.wizard" |
| properties="isEnabled" |
| type="java.lang.Object"> |
| </propertyTester> |
| </extension> |
| <extension |
| id="GendocWizardBatchMode" |
| point="org.eclipse.core.runtime.applications"> |
| <application |
| cardinality="*" |
| thread="main" |
| visible="true"> |
| <run |
| class="org.eclipse.gendoc.wizard.batch.GendocWizardBatchModeApplication"> |
| </run> |
| </application> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.gendoc.wizard.popup.actions.GenerateDocumentationHandler" |
| commandId="org.eclipse.gendoc.script"> |
| <enabledWhen> |
| <iterate |
| ifEmpty="false"> |
| <or> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.gendoc.wizard.isEnabled"> |
| </test> |
| <adapt |
| type="org.eclipse.core.resources.IFile"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.gendoc.wizard.isEnabled"> |
| </test> |
| </adapt> |
| <adapt |
| type="java.util.Collection"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.gendoc.wizard.isCollectionEnabled"> |
| </test> |
| </adapt> |
| <adapt |
| type="org.eclipse.emf.ecore.EObject"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.gendoc.wizard.isEnabled"> |
| </test> |
| </adapt> |
| </or> |
| </iterate> |
| </enabledWhen> |
| </handler> |
| </extension> |
| </plugin> |