| <?xml version="1.0" encoding="UTF-8"?> |
| <custom:Customization |
| xmi:version="2.0" |
| xmlns:xmi="http://www.omg.org/XMI" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns:custom="http://www.eclipse.org/papyrus/emf/facet/custom/0.2.incubation/custom" |
| xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" |
| xmlns:efacet="http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet" |
| xmlns:javaQuery="http://www.eclipse.org/papyrus/emf/facet/query/java/0.2.incubation/javaquery" |
| xmlns:query="http://www.eclipse.org/papyrus/emf/facet/efacet/0.2.incubation/efacet/query" |
| name="DocumentTemplate" |
| documentation="Display contained document template and their icons" |
| mustBeLoadedByDefault="true" |
| rank="-1000"> |
| <eClassifiers |
| xsi:type="custom:EClassCustomization" |
| name="Document" |
| documentation="Representation of document in model explorer"> |
| <extendedMetaclass |
| href="http://www.eclipse.org/papyrus/model2doc/emf/1.0.0/documentstructuretemplate#//DocumentTemplate"/> |
| <facetOperations |
| name="getDocumentLabel"> |
| <eType |
| xsi:type="ecore:EDataType" |
| href="http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eParameters |
| name="eStructuralFeature"> |
| <eType |
| xsi:type="ecore:EClass" |
| href="http://www.eclipse.org/emf/2002/Ecore#//ETypedElement"/> |
| </eParameters> |
| <query |
| xsi:type="javaQuery:JavaQuery" |
| implementationClassName="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.query.GetDocumentTemplateLabelQuery"/> |
| <override |
| xsi:type="efacet:FacetOperation" |
| href="../../../plugin/org.eclipse.papyrus.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/label"/> |
| </facetOperations> |
| <facetOperations |
| name="getDocumentTemplateIcon" |
| documentation="Return the path to the icon of the corresponding document template"> |
| <eType |
| xsi:type="ecore:EDataType" |
| href="http://www.eclipse.org/papyrus/emf/facet/custom/0.2.incubation/custom_primitive_types#//Image"/> |
| <eParameters |
| name="eObject"> |
| <eType |
| xsi:type="ecore:EClass" |
| href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/> |
| </eParameters> |
| <query |
| xsi:type="javaQuery:JavaQuery" |
| implementationClassName="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.query.GetDocumentTemplateIconQuery"/> |
| <override |
| xsi:type="efacet:FacetOperation" |
| href="../../../plugin/org.eclipse.papyrus.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/image"/> |
| </facetOperations> |
| <facetOperations |
| name="getVisibleReferences" |
| upperBound="-1"> |
| <eType |
| xsi:type="ecore:EClass" |
| href="http://www.eclipse.org/emf/2002/Ecore#//EReference"/> |
| <query |
| xsi:type="javaQuery:JavaQuery" |
| implementationClassName="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.query.GetVisibleReferencesQuery"/> |
| <override |
| xsi:type="efacet:FacetOperation" |
| href="../../../plugin/org.eclipse.papyrus.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/visibleReferences"/> |
| </facetOperations> |
| <facetOperations |
| name="getDocumentTemplateParent"> |
| <eType |
| xsi:type="ecore:EClass" |
| href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/> |
| <eParameters |
| name="eStructuralFeature"> |
| <eType |
| xsi:type="ecore:EClass" |
| href="http://www.eclipse.org/emf/2002/Ecore#//ETypedElement"/> |
| </eParameters> |
| <query |
| xsi:type="javaQuery:JavaQuery" |
| implementationClassName="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.query.GetDocumentTemplateParentQuery"/> |
| <override |
| xsi:type="efacet:FacetOperation" |
| href="../../../plugin/org.eclipse.papyrus.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/parent"/> |
| </facetOperations> |
| </eClassifiers> |
| <eClassifiers |
| xsi:type="efacet:Facet" |
| name="DocumentTemplateContainer" |
| documentation="this is a container of DocumentTemplate" |
| conformanceTypedElement="//DocumentTemplateContainer/isDocumentTemplateContainer"> |
| <extendedMetaclass |
| href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/> |
| <facetOperations |
| name="isDocumentTemplateContainer" |
| documentation="test if it references DocumentTemplate"> |
| <eType |
| xsi:type="ecore:EDataType" |
| href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> |
| <query |
| xsi:type="javaQuery:JavaQuery" |
| implementationClassName="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.query.IsDocumentTemplateContainerQuery"/> |
| </facetOperations> |
| </eClassifiers> |
| <eClassifiers |
| xsi:type="custom:FacetCustomization" |
| name="DocumentTemplateContainer" |
| documentation="representation of a container of DocumentTemplate" |
| extendedFacets="//DocumentTemplateContainer" |
| customizedFacet="//DocumentTemplateContainer"> |
| <facetElements |
| xsi:type="efacet:FacetReference" |
| name="DocumentTemplates" |
| upperBound="-1" |
| defaultValueLiteral="" |
| derived="true"> |
| <eType |
| xsi:type="ecore:EClass" |
| href="http://www.eclipse.org/papyrus/model2doc/emf/1.0.0/documentstructuretemplate#//DocumentTemplate"/> |
| <query |
| xsi:type="query:OperationCallQuery" |
| operation="//DocumentTemplateContainer.1/getContainedDocumentTemplates"/> |
| </facetElements> |
| <facetOperations |
| name="getContainedDocumentTemplates" |
| upperBound="-1" |
| documentation="Get the collection of all contained DocumentTemplates"> |
| <eType |
| xsi:type="ecore:EClass" |
| href="http://www.eclipse.org/papyrus/model2doc/emf/1.0.0/documentstructuretemplate#//DocumentTemplate"/> |
| <query |
| xsi:type="javaQuery:JavaQuery" |
| implementationClassName="org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.modelexplorer.internal.query.GetContainedDocumentTemplates"/> |
| </facetOperations> |
| </eClassifiers> |
| </custom:Customization> |