diff options
Diffstat (limited to 'deprecated/deprecated-plugins/sysml.deprecated/org.eclipse.papyrus.sysml.diagram.blockdiagram/model/bdd.gmfgen')
-rw-r--r-- | deprecated/deprecated-plugins/sysml.deprecated/org.eclipse.papyrus.sysml.diagram.blockdiagram/model/bdd.gmfgen | 276 |
1 files changed, 276 insertions, 0 deletions
diff --git a/deprecated/deprecated-plugins/sysml.deprecated/org.eclipse.papyrus.sysml.diagram.blockdiagram/model/bdd.gmfgen b/deprecated/deprecated-plugins/sysml.deprecated/org.eclipse.papyrus.sysml.diagram.blockdiagram/model/bdd.gmfgen new file mode 100644 index 00000000000..97388789483 --- /dev/null +++ b/deprecated/deprecated-plugins/sysml.deprecated/org.eclipse.papyrus.sysml.diagram.blockdiagram/model/bdd.gmfgen @@ -0,0 +1,276 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<gmfgen:GenEditorGenerator xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:gmfgen="http://www.eclipse.org/gmf/2009/GenModel" packageNamePrefix="org.eclipse.papyrus.sysml.diagram.blockdiagram"
+ modelID="BDD"
+ dynamicTemplates="true"
+ templateDirectory="/org.eclipse.papyrus.def/dynamic-templates3.5/codegen">
+ <diagram
+ visualID="1000"
+ editPartClassName="ResourceEditPart"
+ itemSemanticEditPolicyClassName="ResourceItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="ResourceCanonicalEditPolicy"
+ iconProviderPriority="Low"
+ validationProviderPriority="Low">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Diagram"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ editHelperClassName="ResourceEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.draw2d.FreeformLayer"/>
+ <domainDiagramElement
+ href="../../../plugin/org.eclipse.papyrus.resource/model/resource.genmodel#//resource/Resource"/>
+ <childNodes
+ visualID="3001"
+ editPartClassName="PropertyEditPart"
+ itemSemanticEditPolicyClassName="PropertyItemSemanticEditPolicy"
+ notationViewFactoryClassName="PropertyViewFactory"
+ canonicalEditPolicyClassName="PropertyCanonicalEditPolicy"
+ graphicalNodeEditPolicyClassName="PropertyGraphicalNodeEditPolicy"
+ createCommandClassName="PropertyCreateCommand"
+ containers="//@diagram/@compartments.0">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ editHelperClassName="PropertyEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:InnerClassViewmap"
+ className="PropertyFigureDescriptor"
+ classBody="
/**
 * @generated
 */
public class PropertyFigureDescriptor extends org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel {




	/**
	 * @generated
	 */
	public PropertyFigureDescriptor() {
				this.setText("");

this.setFont(THIS_FONT);


	}






}

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Font THIS_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 10, org.eclipse.swt.SWT.NORMAL);

">
+ <attributes
+ xsi:type="gmfgen:StyleAttributes"
+ fixedFont="true"/>
+ </viewmap>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Property"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/StructuredClassifier/ownedAttribute"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/StructuredClassifier/ownedAttribute"/>
+ </modelFacet>
+ </childNodes>
+ <childNodes
+ visualID="3102"
+ editPartClassName="OperationEditPart"
+ itemSemanticEditPolicyClassName="OperationItemSemanticEditPolicy"
+ notationViewFactoryClassName="OperationViewFactory"
+ canonicalEditPolicyClassName="OperationCanonicalEditPolicy"
+ graphicalNodeEditPolicyClassName="OperationGraphicalNodeEditPolicy"
+ createCommandClassName="OperationCreateCommand"
+ containers="//@diagram/@compartments.1">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ editHelperClassName="OperationEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:InnerClassViewmap"
+ className="OperationFigureDescriptor"
+ classBody="
/**
 * @generated
 */
public class OperationFigureDescriptor extends org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel {




	/**
	 * @generated
	 */
	public OperationFigureDescriptor() {
				this.setText("");

this.setFont(THIS_FONT);


	}






}

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Font THIS_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 10, org.eclipse.swt.SWT.NORMAL);

">
+ <attributes
+ xsi:type="gmfgen:StyleAttributes"
+ fixedFont="true"/>
+ </viewmap>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Operation"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Class/ownedOperation"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Class/ownedOperation"/>
+ </modelFacet>
+ </childNodes>
+ <topLevelNodes
+ visualID="2001"
+ editPartClassName="BlockEditPart"
+ itemSemanticEditPolicyClassName="BlockItemSemanticEditPolicy"
+ notationViewFactoryClassName="BlockViewFactory"
+ canonicalEditPolicyClassName="BlockCanonicalEditPolicy"
+ compartments="//@diagram/@compartments.0 //@diagram/@compartments.1"
+ graphicalNodeEditPolicyClassName="BlockGraphicalNodeEditPolicy"
+ createCommandClassName="BlockCreateCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ editHelperClassName="BlockEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:InnerClassViewmap"
+ className="ClassifierDescriptor"
+ classBody="
/**
 * @generated
 */
public class ClassifierDescriptor extends org.eclipse.papyrus.diagram.common.figure.node.CClassifierFigure {


	/**
	 * @generated
	 */
	private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fClassifierNameLabel; 
	/**
	 * @generated
	 */
	private org.eclipse.draw2d.RectangleFigure fAttributeCompartmentFigure; 
	/**
	 * @generated
	 */
	private org.eclipse.draw2d.RectangleFigure fOperationCompartmentFigure; 
	/**
	 * @generated
	 */
	private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fClassifierStereotypeLabel; 
	/**
	 * @generated
	 */
	private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fClassifierQualifiedNameLabel; 
	/**
	 * @generated
	 */
	private org.eclipse.draw2d.RectangleFigure fNestedClassifierFigure; 


	/**
	 * @generated
	 */
	public ClassifierDescriptor() {
				

	this.setForegroundColor(THIS_FORE
);
	this.setBackgroundColor(THIS_BACK
);
		createContents();
	}
	/**
	 * @generated
	 */
	private void createContents(){


fClassifierStereotypeLabel = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();
fClassifierStereotypeLabel.setText("");

fClassifierStereotypeLabel.setFont(FCLASSIFIERSTEREOTYPELABEL_FONT);



this.add(fClassifierStereotypeLabel);



fClassifierNameLabel = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();
fClassifierNameLabel.setText("");

fClassifierNameLabel.setFont(FCLASSIFIERNAMELABEL_FONT);



this.add(fClassifierNameLabel);



fClassifierQualifiedNameLabel = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();
fClassifierQualifiedNameLabel.setText("");

fClassifierQualifiedNameLabel.setFont(FCLASSIFIERQUALIFIEDNAMELABEL_FONT);



this.add(fClassifierQualifiedNameLabel);



fAttributeCompartmentFigure = new org.eclipse.draw2d.RectangleFigure();
fAttributeCompartmentFigure.setFill(false);
fAttributeCompartmentFigure.setLineWidth(1);

this.add(fAttributeCompartmentFigure);
fAttributeCompartmentFigure.setLayoutManager(new org.eclipse.draw2d.StackLayout());



fOperationCompartmentFigure = new org.eclipse.draw2d.RectangleFigure();
fOperationCompartmentFigure.setFill(false);
fOperationCompartmentFigure.setLineWidth(1);

this.add(fOperationCompartmentFigure);
fOperationCompartmentFigure.setLayoutManager(new org.eclipse.draw2d.StackLayout());



fNestedClassifierFigure = new org.eclipse.draw2d.RectangleFigure();
fNestedClassifierFigure.setFill(false);
fNestedClassifierFigure.setLineWidth(1);

this.add(fNestedClassifierFigure);
fNestedClassifierFigure.setLayoutManager(new org.eclipse.draw2d.StackLayout());


	}




	/**
	 * @generated
	 */
	private boolean myUseLocalCoordinates = false;

	/**
	 * @generated
	 */
	protected boolean useLocalCoordinates() {
		return myUseLocalCoordinates;
	}

	/**
	 * @generated
	 */
	protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
		myUseLocalCoordinates = useLocalCoordinates;
	}



	/**
	 * @generated
	 */
	public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getClassifierNameLabel() {
		return fClassifierNameLabel;
	}
	/**
	 * @generated
	 */
	public org.eclipse.draw2d.RectangleFigure getAttributeCompartmentFigure() {
		return fAttributeCompartmentFigure;
	}
	/**
	 * @generated
	 */
	public org.eclipse.draw2d.RectangleFigure getOperationCompartmentFigure() {
		return fOperationCompartmentFigure;
	}
	/**
	 * @generated
	 */
	public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getClassifierStereotypeLabel() {
		return fClassifierStereotypeLabel;
	}
	/**
	 * @generated
	 */
	public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getClassifierQualifiedNameLabel() {
		return fClassifierQualifiedNameLabel;
	}
	/**
	 * @generated
	 */
	public org.eclipse.draw2d.RectangleFigure getNestedClassifierFigure() {
		return fNestedClassifierFigure;
	}


}

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Color THIS_FORE = new org.eclipse.swt.graphics.Color(null, 177, 207, 229);

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Color THIS_BACK = new org.eclipse.swt.graphics.Color(null, 235, 248, 255);

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Font FCLASSIFIERSTEREOTYPELABEL_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 8, org.eclipse.swt.SWT.NORMAL);

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Font FCLASSIFIERNAMELABEL_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 10, org.eclipse.swt.SWT.BOLD);

/**
 * @generated
 */
static final org.eclipse.swt.graphics.Font FCLASSIFIERQUALIFIEDNAMELABEL_FONT = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), "Arial", 8, org.eclipse.swt.SWT.ITALIC);

">
+ <attributes
+ xsi:type="gmfgen:StyleAttributes"
+ fixedForeground="true"
+ fixedBackground="true"/>
+ </viewmap>
+ <modelFacet>
+ <metaClass
+ href="../../org.eclipse.papyrus.sysml.converted/model/sysml.genmodel#//sysml/blocks/Block"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.papyrus.resource/model/resource.genmodel#//resource/Resource/eobjects"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.papyrus.resource/model/resource.genmodel#//resource/Resource/eobjects"/>
+ </modelFacet>
+ </topLevelNodes>
+ <compartments
+ visualID="7001"
+ editPartClassName="BlockAttributeCompartmentEditPart"
+ itemSemanticEditPolicyClassName="BlockAttributeCompartmentItemSemanticEditPolicy"
+ notationViewFactoryClassName="BlockAttributeCompartmentViewFactory"
+ canonicalEditPolicyClassName="BlockAttributeCompartmentCanonicalEditPolicy"
+ childNodes="//@diagram/@childNodes.0"
+ title="AttributeCompartment"
+ needsTitle="false"
+ node="//@diagram/@topLevelNodes.0">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getAttributeCompartmentFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ </compartments>
+ <compartments
+ visualID="7002"
+ editPartClassName="BlockOperationCompartmentEditPart"
+ itemSemanticEditPolicyClassName="BlockOperationCompartmentItemSemanticEditPolicy"
+ notationViewFactoryClassName="BlockOperationCompartmentViewFactory"
+ canonicalEditPolicyClassName="BlockOperationCompartmentCanonicalEditPolicy"
+ childNodes="//@diagram/@childNodes.1"
+ title="OperationCompartment"
+ needsTitle="false"
+ node="//@diagram/@topLevelNodes.0">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getOperationCompartmentFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ </compartments>
+ <palette>
+ <groups
+ title="Element"
+ description=""
+ largeIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
+ smallIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
+ collapse="true">
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Block"
+ description="Create a block"
+ largeIconPath="platform:/plugin/org.eclipse.papyrus.sysml.edit/icons/blocks/Block.gif"
+ smallIconPath="platform:/plugin/org.eclipse.papyrus.sysml.edit/icons/blocks/Block.gif"
+ genNodes="//@diagram/@topLevelNodes.0"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Package"
+ description="Create a Package"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif"/>
+ </groups>
+ <groups
+ title="Connector"
+ description=""
+ largeIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
+ smallIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif">
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Association"
+ description="Create an association"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif"/>
+ </groups>
+ <groups
+ title="-- Mis-referenced tools --"
+ description="Mapping element referenced tools from palette other than one specified in Mapping instance">
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Property"
+ description="Create a new Property"
+ genNodes="//@diagram/@childNodes.0"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Operation"
+ description="Create an operation"
+ genNodes="//@diagram/@childNodes.1"/>
+ </groups>
+ </palette>
+ <preferencePages
+ xsi:type="gmfgen:GenStandardPreferencePage"
+ iD="org.eclipse.papyrus.sysml.diagram.general"
+ name="Sysml Diagram">
+ <children
+ xsi:type="gmfgen:GenStandardPreferencePage"
+ iD="org.eclipse.papyrus.sysml.diagram.appearance"
+ name="Appearance"
+ kind="Appearance"/>
+ <children
+ xsi:type="gmfgen:GenStandardPreferencePage"
+ iD="org.eclipse.papyrus.sysml.diagram.connections"
+ name="Connections"
+ kind="Connections"/>
+ <children
+ xsi:type="gmfgen:GenStandardPreferencePage"
+ iD="org.eclipse.papyrus.sysml.diagram.printing"
+ name="Printing"
+ kind="Printing"/>
+ <children
+ xsi:type="gmfgen:GenStandardPreferencePage"
+ iD="org.eclipse.papyrus.sysml.diagram.rulersAndGrid"
+ name="Rulers And Grid"
+ kind="RulersAndGrid"/>
+ </preferencePages>
+ </diagram>
+ <plugin
+ iD="org.eclipse.papyrus.sysml.diagram.blockdiagram"
+ provider="Atos Origin"
+ version="0.7.0.qualifier">
+ <requiredPlugins>org.eclipse.draw2d</requiredPlugins>
+ <requiredPlugins>org.eclipse.gmf.runtime.draw2d.ui</requiredPlugins>
+ </plugin>
+ <editor/>
+ <navigator>
+ <childReferences
+ child="//@diagram"/>
+ <childReferences
+ parent="//@diagram/@topLevelNodes.0"
+ child="//@diagram/@childNodes.0"/>
+ <childReferences
+ parent="//@diagram/@topLevelNodes.0"
+ child="//@diagram/@childNodes.1"/>
+ <childReferences
+ parent="//@diagram"
+ child="//@diagram/@topLevelNodes.0"/>
+ </navigator>
+ <diagramUpdater/>
+ <propertySheet>
+ <tabs
+ xsi:type="gmfgen:GenStandardPropertyTab"
+ iD="appearance"/>
+ <tabs
+ xsi:type="gmfgen:GenStandardPropertyTab"
+ iD="diagram"/>
+ <tabs
+ xsi:type="gmfgen:GenCustomPropertyTab"
+ iD="domain"
+ label="Core">
+ <filter
+ xsi:type="gmfgen:TypeTabFilter">
+ <types>org.eclipse.gmf.runtime.notation.View</types>
+ <types>org.eclipse.gef.EditPart</types>
+ <generatedTypes>abstractNavigatorItem</generatedTypes>
+ </filter>
+ </tabs>
+ </propertySheet>
+ <domainGenModel
+ href="../../org.eclipse.papyrus.sysml.converted/model/sysml.genmodel#/"/>
+ <contextMenus
+ context="//@diagram">
+ <items
+ xsi:type="gmfgen:LoadResourceAction"/>
+ </contextMenus>
+</gmfgen:GenEditorGenerator>
|