blob: baa766b336a10f7a765241e35464e05a120b0191 [file] [log] [blame]
<?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/2008/GenModel" packageNamePrefix="org.eclipse.gmf.examples.taipan.port.diagram"
modelID="Port"
diagramFileExtension="port_diagram"
domainFileExtension="taipan"
copyrightText="Copyright (c) 2007 Borland Software Corporation&#xA;&#xA;All rights reserved. This program and the accompanying materials&#xA;are made available under the terms of the Eclipse Public License v1.0&#xA;which accompanies this distribution, and is available at&#xA;http://www.eclipse.org/legal/epl-v10.html&#xA;&#xA;Contributors:&#xA; Dmitry Stadnik (Borland) - initial API and implementation">
<diagram
visualID="1000"
editPartClassName="PortEditPart"
itemSemanticEditPolicyClassName="PortItemSemanticEditPolicy"
notationViewFactoryClassName="PortViewFactory"
canonicalEditPolicyClassName="PortCanonicalEditPolicy"
iconProviderPriority="Low"
creationWizardIconPath="icons/PortDiagramFile.gif"
validationProviderClassName="PortValidationProvider"
validationProviderPriority="Low"
metricProviderClassName="PortMetricProvider"
validationDecoratorProviderClassName="PortValidationDecoratorProvider">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Diagram"/>
<elementType
xsi:type="gmfgen:MetamodelType"
displayName="Port"
editHelperClassName="PortEditHelper"/>
<viewmap
xsi:type="gmfgen:FigureViewmap"
figureQualifiedClassName="org.eclipse.draw2d.FreeformLayer"/>
<domainDiagramElement
href="taipan.genmodel#//taipan/Port"/>
<topLevelNodes
visualID="2001"
editPartClassName="BuildingEditPart"
itemSemanticEditPolicyClassName="BuildingItemSemanticEditPolicy"
notationViewFactoryClassName="BuildingViewFactory"
canonicalEditPolicyClassName="BuildingCanonicalEditPolicy"
graphicalNodeEditPolicyClassName="BuildingGraphicalNodeEditPolicy"
createCommandClassName="BuildingCreateCommand">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<elementType
xsi:type="gmfgen:MetamodelType"
editHelperClassName="BuildingEditHelper"/>
<viewmap
xsi:type="gmfgen:InnerClassViewmap"
className="BuildingFigure"
classBody="&#xA;/**&#xA; * @generated&#xA; */&#xA;public class BuildingFigure extends org.eclipse.gmf.examples.taipan.figures.BuildingShape {&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel fFigureBuildingInfoLabel; &#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public BuildingFigure() {&#xA;&#x9;&#x9;&#x9;&#x9;&#xA;&#xA;&#x9;&#x9;createContents();&#xA;&#x9;}&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private void createContents(){&#xA;&#xA;&#xA;fFigureBuildingInfoLabel = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel();&#xA;fFigureBuildingInfoLabel.setText(&quot;&quot;);&#xA;&#xA;this.add(fFigureBuildingInfoLabel);&#xA;&#xA;&#xA;&#x9;}&#xA;&#xA;&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;private boolean myUseLocalCoordinates = false;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;protected boolean useLocalCoordinates() {&#xA;&#x9;&#x9;return myUseLocalCoordinates;&#xA;&#x9;}&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;protected void setUseLocalCoordinates(boolean useLocalCoordinates) {&#xA;&#x9;&#x9;myUseLocalCoordinates = useLocalCoordinates;&#xA;&#x9;}&#xA;&#xA;&#xA;&#xA;&#x9;/**&#xA;&#x9; * @generated&#xA;&#x9; */&#xA;&#x9;public org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel getFigureBuildingInfoLabel() {&#xA;&#x9;&#x9;return fFigureBuildingInfoLabel;&#xA;&#x9;}&#xA;&#xA;&#xA;}&#xA;&#xA;">
<requiredPluginIDs>org.eclipse.gmf.examples.taipan</requiredPluginIDs>
<requiredPluginIDs>org.eclipse.gmf.runtime.draw2d.ui</requiredPluginIDs>
</viewmap>
<modelFacet>
<metaClass
href="taipan.genmodel#//taipan/Building"/>
<containmentMetaFeature
href="taipan.genmodel#//taipan/Port/buildings"/>
<childMetaFeature
href="taipan.genmodel#//taipan/Port/buildings"/>
</modelFacet>
<labels
visualID="3001"
editPartClassName="BuildingInfoEditPart"
itemSemanticEditPolicyClassName="BuildingInfoItemSemanticEditPolicy"
notationViewFactoryClassName="BuildingInfoViewFactory">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap
xsi:type="gmfgen:ParentAssignedViewmap"
getterName="getFigureBuildingInfoLabel"
figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
<modelFacet
xsi:type="gmfgen:FeatureLabelModelFacet"
parser="//@labelParsers/@implementations.0"
viewMethod="NATIVE"
editMethod="NATIVE">
<metaFeatures
href="taipan.genmodel#//taipan/Building/info"/>
</modelFacet>
</labels>
</topLevelNodes>
<palette>
<groups
title="Port">
<entries
xsi:type="gmfgen:ToolEntry"
title="Building"
description="Create new building"
genNodes="//@diagram/@topLevelNodes.0"/>
</groups>
</palette>
<preferences>
<defaultFont
xsi:type="gmfgen:GenCustomFont"
name="Lucida Grande"
height="12"/>
<fontColor
xsi:type="gmfgen:GenConstantColor"
name="darkGray"/>
<fillColor
xsi:type="gmfgen:GenConstantColor"
name="white"/>
<lineColor
xsi:type="gmfgen:GenConstantColor"
name="black"/>
</preferences>
<preferencePages
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.gmf.examples.taipan.diagram.general"
name="Port Diagram">
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.gmf.examples.taipan.diagram.appearance"
name="Appearance"
kind="Appearance"/>
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.gmf.examples.taipan.diagram.connections"
name="Connections"
kind="Connections"/>
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.gmf.examples.taipan.diagram.printing"
name="Printing"
kind="Printing"/>
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.gmf.examples.taipan.diagram.rulersAndGrid"
name="Rulers And Grid"
kind="RulersAndGrid"/>
<children
xsi:type="gmfgen:GenStandardPreferencePage"
iD="org.eclipse.gmf.examples.taipan.diagram.pathmaps"
name="Pathmaps"
kind="Pathmaps"/>
</preferencePages>
</diagram>
<plugin
iD="org.eclipse.gmf.examples.taipan.port.diagram"
name="TaiPan Port Diagram"
provider="Eclipse.org"
activatorClassName="PortDiagramEditorPlugin"/>
<editor
className="PortDiagramEditor"/>
<diagramUpdater/>
<propertySheet
packageName="org.eclipse.gmf.examples.taipan.port.diagram.properties"
labelProviderClassName="PortPropertiesLabelProvider">
<tabs
xsi:type="gmfgen:GenStandardPropertyTab"
iD="appearance"/>
<tabs
xsi:type="gmfgen:GenStandardPropertyTab"
iD="diagram"
label="Rulers &amp; Grid"/>
<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="taipan.genmodel#/"/>
<labelParsers
extensibleViaService="true">
<implementations
xsi:type="gmfgen:PredefinedParser"
uses="//@diagram/@topLevelNodes.0/@labels.0/@modelFacet"
viewMethod="NATIVE"
editMethod="NATIVE"/>
</labelParsers>
</gmfgen:GenEditorGenerator>