blob: 109ae70d340b992ce3271cb85f666667c79716be [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">
<separator
name="org.eclipse.papyrus.model2doc.dev.tools.ui.menu.separator.before"
visible="true">
</separator>
<menu
id="org.eclipse.papyrus.model2doc.dev.tools.ui.menu"
label="Papyrus-Model2doc Developer"
icon="icons/Papyrus_16x16.gif"
tooltip="Papyrus-Model2Doc Developer Menu">
<command
commandId="org.eclipse.papyrus.model2doc.dev.tools.extractXMLContents"
label="Extract Contents XML File"
style="push">
<visibleWhen
checkEnabled="true">
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.model2doc.dev.tools.createPrototypeFromTemplate"
label="Create DocumentPrototype From DocumentTemplate"
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.documentstructuretemplate.DocumentTemplate">
</instanceof>
</adapt>
</iterate>
</and>
</with>
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.model2doc.dev.tools.extractFullODTContents"
style="push">
<visibleWhen
checkEnabled="true">
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.model2doc.dev.tools.extractFullDocxContents"
style="push">
<visibleWhen
checkEnabled="true">
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.model2doc.dev.tools.extractDocxXMLDocument"
label="Extract Docx Document XML File"
style="push">
<visibleWhen
checkEnabled="true">
</visibleWhen>
</command>
<separator
name="org.eclipse.papyrus.model2doc.dev.tools.ui.menu.separator.after"
visible="true">
</separator>
</menu>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
description="This command allows to extract the file Contents.xml from an odt file"
id="org.eclipse.papyrus.model2doc.dev.tools.extractXMLContents"
name="Extract Contents.xml file">
</command>
<command
description="This command allows to create a Document Prototype from a DocumentStructureTemplate"
id="org.eclipse.papyrus.model2doc.dev.tools.createPrototypeFromTemplate"
name="Create prototype">
</command>
<command
description="This command allows to extract all the contents of an odt file"
id="org.eclipse.papyrus.model2doc.dev.tools.extractFullODTContents"
name="Extract Full ODT file contents">
</command>
<command
description="This command allows to extract all the contents of an docx file"
id="org.eclipse.papyrus.model2doc.dev.tools.extractFullDocxContents"
name="Extract Full Docx file contents">
</command>
<command
description="This command allows to extract the file document.xml from an docx file"
id="org.eclipse.papyrus.model2doc.dev.tools.extractDocxXMLDocument"
name="Extract document.xml file">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.papyrus.model2doc.dev.tools.handlers.CreatePrototypeFromTemplateHandler"
commandId="org.eclipse.papyrus.model2doc.dev.tools.createPrototypeFromTemplate">
</handler>
<handler
class="org.eclipse.papyrus.model2doc.dev.tools.handlers.ExtractContentsXmlFileHandler"
commandId="org.eclipse.papyrus.model2doc.dev.tools.extractXMLContents">
<activeWhen>
<with
variable="selection">
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.core.resources.IFile">
<or>
<test
property="org.eclipse.core.resources.name"
value="*.odt">
</test>
<test
property="org.eclipse.core.resources.name"
value="*.ott">
</test>
</or>
</adapt>
</iterate>
</with>
</activeWhen>
</handler>
<handler
class="org.eclipse.papyrus.model2doc.dev.tools.handlers.UnzipOdtFileHandler"
commandId="org.eclipse.papyrus.model2doc.dev.tools.extractFullODTContents">
<activeWhen>
<with
variable="selection">
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.core.resources.IFile">
<or>
<test
property="org.eclipse.core.resources.name"
value="*.odt">
</test>
<test
property="org.eclipse.core.resources.name"
value="*.ott">
</test>
</or>
</adapt>
</iterate>
</with>
</activeWhen>
</handler>
<handler
class="org.eclipse.papyrus.model2doc.dev.tools.handlers.UnzipDocxFileHandler"
commandId="org.eclipse.papyrus.model2doc.dev.tools.extractFullDocxContents">
<activeWhen>
<with
variable="selection">
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.core.resources.IFile">
<or>
<test
property="org.eclipse.core.resources.name"
value="*.docx">
</test>
<test
property="org.eclipse.core.resources.name"
value="*.dotx">
</test>
</or>
</adapt>
</iterate>
</with>
</activeWhen>
</handler>
<handler
class="org.eclipse.papyrus.model2doc.dev.tools.handlers.ExtractDocxContentsXmlFileHandler"
commandId="org.eclipse.papyrus.model2doc.dev.tools.extractDocxXMLDocument">
<activeWhen>
<with
variable="selection">
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.core.resources.IFile">
<or>
<test
property="org.eclipse.core.resources.name"
value="*.docx">
</test>
<test
property="org.eclipse.core.resources.name"
value="*.dotx">
</test>
</or>
</adapt>
</iterate>
</with>
</activeWhen>
</handler>
</extension>
</plugin>