blob: bad741258f015b146949430a38f9e87495fb97f6 [file] [log] [blame]
<?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="PapyrusDiagramLayer" documentation="Display contained diagram and their icons" mustBeLoadedByDefault="true" rank="-1000">
<eClassifiers xsi:type="custom:EClassCustomization" name="Diagram" documentation="Representation of diagram in model explorer">
<extendedMetaclass href="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Diagram"/>
<facetElements xsi:type="efacet:FacetReference" name="layers" upperBound="-1" volatile="true" transient="true" derived="true">
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/infra/gmfdiag/layers#//AbstractLayer"/>
<query xsi:type="javaQuery:JavaQuery" implementationClassName="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.queries.GetAssociatedLayers"/>
</facetElements>
<facetOperations name="GetDiagramLabel" documentation="Return the label of the corresponding diagram">
<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#//EStructuralFeature"/>
</eParameters>
<query xsi:type="javaQuery:JavaQuery" implementationClassName="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.queries.GetDiagramLabel"/>
<override xsi:type="efacet:FacetOperation" href="platform:/plugin/org.eclipse.papyrus.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/label"/>
</facetOperations>
<facetOperations name="GetDiagramIcon" documentation="Return the path to the icon of the corresponding diagram">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/papyrus/emf/facet/custom/0.2.incubation/custom_primitive_types#//Image"/>
<eParameters name="eStructuralFeature">
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EStructuralFeature"/>
</eParameters>
<query xsi:type="javaQuery:JavaQuery" implementationClassName="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.queries.GetDiagramIcon"/>
<override xsi:type="efacet:FacetOperation" href="platform:/plugin/org.eclipse.papyrus.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/image"/>
</facetOperations>
<facetOperations name="GetParent">
<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.internal.infra.gmfdiag.layers.ui.queries.GetDiagramContainer"/>
<override xsi:type="efacet:FacetOperation" href="platform:/plugin/org.eclipse.papyrus.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/parent"/>
</facetOperations>
</eClassifiers>
<eClassifiers xsi:type="efacet:Facet" name="DiagramContainer" documentation="this element represent a container of diagram" conformanceTypedElement="//DiagramContainer/isDiagramContainer">
<extendedMetaclass href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
<facetOperations name="isDiagramContainer" documentation="test if the element references diagrams">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<query xsi:type="javaQuery:JavaQuery" implementationClassName="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.queries.IsDiagramContainer"/>
</facetOperations>
</eClassifiers>
<eClassifiers xsi:type="custom:FacetCustomization" name="DiagramContainer" documentation="Representation of a diagram container">
<facetElements xsi:type="efacet:FacetReference" name="diagrams" upperBound="-1" defaultValueLiteral="" derived="true">
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Diagram"/>
<query xsi:type="query:OperationCallQuery" operation="//DiagramContainer.1/DiagramsRefContent"/>
</facetElements>
<facetOperations name="DiagramsRefContent" upperBound="-1" documentation="Get the collection of all contained diagrams">
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Diagram"/>
<query xsi:type="javaQuery:JavaQuery" implementationClassName="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.queries.GetContainedDiagrams"/>
</facetOperations>
<extendedFacets href="platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.modelexplorer/resources/PapyrusDiagram.custom#//DiagramContainer"/>
<customizedFacet href="platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.modelexplorer/resources/PapyrusDiagram.custom#//DiagramContainer"/>
</eClassifiers>
</custom:Customization>