blob: d876da44137631730c14a14ddbe58f1928eea3e7 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="documentstructuretemplate" nsURI="http://www.eclipse.org/papyrus/model2doc/gmf/integration/1.0.0/documentstructuretemplate"
nsPrefix="documentstructuretemplate">
<eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
<details key="originalName" value="PapyrusGMFDocumentStructureTemplate"/>
</eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="PapyrusGMFDiagramView" eSuperTypes="../../org.eclipse.papyrus.model2doc.emf.documentstructuretemplate/model/documentstructuretemplate.ecore#//ITemplatePartView ../../org.eclipse.papyrus.model2doc.emf.documentstructuretemplate/model/documentstructuretemplate.ecore#//ILeafBodyPartTemplate">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="This element allows to represent Papyrus Diagram. These diagrams are an extension of GMF Notation Diagram, but they have a kind in addition of the type field provided by GMF.&#xD;&#xA;This View doesn't extend the GMFDiagramView provided by the model gmfdocumentstructuretemplate in order to allow to install the Papyrus GMF Diagram version without depending of the code managing the GMFDiagramView"/>
</eAnnotations>
<eAnnotations source="duplicates">
<contents xsi:type="ecore:EOperation" name="buildPartTemplateTitle" ordered="false"
lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
<eAnnotations source="redefines" references="../../org.eclipse.papyrus.model2doc.emf.documentstructuretemplate/model/documentstructuretemplate.ecore#//IBodySectionPartTemplate/buildPartTemplateTitle"/>
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return org.eclipse.papyrus.model2doc.integration.gmf.documentstructuretemplate.internal.operations.PapyrusGMFBodySectionPartTemplateTitleOperations.PAPYRUS_GMF_INSTANCE.buildPartTemplateTitle(this,context);"/>
</eAnnotations>
<eParameters name="context" ordered="false" lowerBound="1" eType="ecore:EClass ../../org.eclipse.emf.ecore/model/Ecore.ecore#//EObject"/>
</contents>
</eAnnotations>
<eOperations name="getMatchingDiagrams" ordered="false" upperBound="-1" eType="#//Diagram">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="This method returns the diagram owned by the parameter expectedDiagramContext, according to the type and the kind of the diagram.&#xD;&#xA;If type and kind are not defined, the method will returns all diagrams owned by the argument.&#xD;&#xA;If the diagram doesn't have a PapryusDiagramStyle, this method returns false. "/>
</eAnnotations>
<eParameters name="expectedDiagramContext" ordered="false" lowerBound="1" eType="ecore:EClass ../../org.eclipse.emf.ecore/model/Ecore.ecore#//EObject"/>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="diagramKindId" ordered="false"
eType="ecore:EDataType ../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The kind of the diagram. This field can be empty. In this case, all diagrams will be integrated into the final document."/>
<details key="propertyEditorFactory" value="editor://papyrusgmfdocumentstructuretemplate/PapyrusGMFDiagramView/diagramKindId/"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="diagramType" ordered="false"
eType="ecore:EDataType ../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The type of diagram to manage. If no type is defined, we will take all diagrams."/>
<details key="propertyEditorFactory" value="editor://papyrusgmfdocumentstructuretemplate/PapyrusGMFDiagramView/diagramType/"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="contextFilterRule" ordered="false"
lowerBound="1" eType="#//ContextFilterBehavior">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="This property allows to define how to use the parameter of the method getMatchingDiagram."/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="diagramImageMargin" ordered="false"
lowerBound="1" eType="ecore:EDataType ../../org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"
defaultValueLiteral="10">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="This field allows to define the size of the margin around the diagram snapshot. The value is interpreted as Pixel. The default value is 10."/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="imageFormat" ordered="false"
lowerBound="1" eType="ecore:EEnum ../../org.eclipse.papyrus.model2doc.core.builtintypes/model/BuiltInTypes.ecore#//ImageFormat"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="ContextFilterBehavior">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="This enumeration allows to define wich context must be used to find diagrams."/>
</eAnnotations>
<eLiterals name="SEMANTIC_CONTEXT">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="(In Papyrus, this concept is called Diagram Root Element)"/>
</eAnnotations>
</eLiterals>
<eLiterals name="GRAPHICAL_CONTEXT" value="1">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="(In Papyrus, this concept is called Diagram Owner)"/>
</eAnnotations>
</eLiterals>
<eLiterals name="BOTH" value="2">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="We look matching diagrams using the element as semantic context and graphical context."/>
</eAnnotations>
</eLiterals>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Diagram" instanceClassName="org.eclipse.gmf.runtime.notation.Diagram"
abstract="true" interface="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="This interface allows to represent the GMF Diagram element."/>
</eAnnotations>
</eClassifiers>
</ecore:EPackage>