blob: dd13161d34ca7881949578506bda672bf6f1c3f6 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.ui.popup.any">
<command
commandId="org.eclipse.papyrus.model2doc.odt.emf.structure2document.generate.file"
style="push">
<visibleWhen
checkEnabled="false">
<with
variable="selection">
<and>
<count
value="1">
</count>
<iterate
ifEmpty="false">
<adapt
type="org.eclipse.emf.ecore.EObject">
<instanceof
value="org.eclipse.papyrus.model2doc.emf.documentstructure.TextDocument">
</instanceof>
</adapt>
</iterate>
</and>
</with>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="org.eclipse.papyrus.model2doc.odt.emf.structure2document.generate.file"
name="Generate ODT File">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.papyrus.model2doc.odt.emf.structure2document.internal.handler.GenerateODTFileHandler"
commandId="org.eclipse.papyrus.model2doc.odt.emf.structure2document.generate.file">
<activeWhen>
<with
variable="selection">
<and>
<count
value="1">
</count>
<iterate
ifEmpty="false">
<adapt
type="org.eclipse.emf.ecore.EObject">
<instanceof
value="org.eclipse.papyrus.model2doc.emf.documentstructure.TextDocument">
</instanceof>
</adapt>
</iterate>
</and>
</with>
</activeWhen>
</handler>
</extension>
<extension
point="org.eclipse.papyrus.model2doc.emf.structure2document.documentgenerator">
<generator
class="org.eclipse.papyrus.model2doc.odt.emf.structure2document.internal.generators.TextDocumentToODTGenerator"
id="org.eclipse.papyrus.model2doc.document.generator.odt">
</generator>
</extension>
</plugin>