blob: 706c4382adad4779b429be906415d13728d976a5 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!--
Copyright (c) 2019 CEA LIST.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
-->
<plugin>
<extension
point="org.eclipse.papyrus.emf.facet.util.emf.core.modeldeclaration">
<modeldeclaration
file="resources/DocumentTemplate.custom"></modeldeclaration>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.handlers.RenameDocumentTemplateHandler"
commandId="org.eclipse.ui.edit.rename">
<activeWhen>
<with
variable="selection">
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.emf.ecore.EObject">
<instanceof
value="org.eclipse.papyrus.model2doc.emf.documentstructuretemplate.DocumentTemplate">
</instanceof>
</adapt>
</iterate>
</with>
</activeWhen>
</handler>
<handler
class="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.handlers.DocumentTemplateQuickFormatHandler"
commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingUpperCaseCommand">
<activeWhen>
<with
variable="selection">
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.emf.ecore.EObject">
<instanceof
value="org.eclipse.papyrus.model2doc.emf.documentstructuretemplate.DocumentTemplate">
</instanceof>
</adapt>
</iterate>
</with>
</activeWhen>
</handler>
<handler
class="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.handlers.DocumentTemplateQuickFormatHandler"
commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingLowerCaseCommand">
<activeWhen>
<with
variable="selection">
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.emf.ecore.EObject">
<instanceof
value="org.eclipse.papyrus.model2doc.emf.documentstructuretemplate.DocumentTemplate">
</instanceof>
</adapt>
</iterate>
</with>
</activeWhen>
</handler>
<handler
class="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.handlers.DocumentTemplateQuickFormatHandler"
commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingSwitchSpace2UnderscoreCommand">
<activeWhen>
<with
variable="selection">
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.emf.ecore.EObject">
<instanceof
value="org.eclipse.papyrus.model2doc.emf.documentstructuretemplate.DocumentTemplate">
</instanceof>
</adapt>
</iterate>
</with>
</activeWhen>
</handler>
<handler
class="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.handlers.DocumentTemplateQuickFormatHandler"
commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingCapitalizeFirstLetterCommand">
<activeWhen>
<with
variable="selection">
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.emf.ecore.EObject">
<instanceof
value="org.eclipse.papyrus.model2doc.emf.documentstructuretemplate.DocumentTemplate">
</instanceof>
</adapt>
</iterate>
</with>
</activeWhen>
</handler>
<handler
class="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.handlers.DocumentTemplateQuickFormatHandler"
commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingRemoveSpaceCommand">
<activeWhen>
<with
variable="selection">
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.emf.ecore.EObject">
<instanceof
value="org.eclipse.papyrus.model2doc.emf.documentstructuretemplate.DocumentTemplate">
</instanceof>
</adapt>
</iterate>
</with>
</activeWhen>
</handler>
</extension>
<extension
point="org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.DirectEditor">
<DirectEditor
contributor="Eclipse Modeling Project"
language="DocumentTemplate Direct Editor"
objectToEdit="org.eclipse.papyrus.model2doc.emf.documentstructuretemplate.DocumentTemplate"
superType="true">
<popupeditor
editorConfiguration="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.directeditor.DocumentTemplateDirectEditorConfiguration">
</popupeditor>
<Priority
name="Medium">
</Priority>
</DirectEditor>
</extension>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
class="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.directeditor.DocumentTemplateDirectEditorPreferenceInitializer">
</initializer>
</extension>
</plugin>