Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.gmf.examples.taipan/models/port_rcp.gmfgen')
-rw-r--r--examples/org.eclipse.gmf.examples.taipan/models/port_rcp.gmfgen19
1 files changed, 11 insertions, 8 deletions
diff --git a/examples/org.eclipse.gmf.examples.taipan/models/port_rcp.gmfgen b/examples/org.eclipse.gmf.examples.taipan/models/port_rcp.gmfgen
index d0ce3c667..52c2d4b37 100644
--- a/examples/org.eclipse.gmf.examples.taipan/models/port_rcp.gmfgen
+++ b/examples/org.eclipse.gmf.examples.taipan/models/port_rcp.gmfgen
@@ -44,9 +44,10 @@
xsi:type="gmfgen:MetamodelType"
editHelperClassName="BuildingEditHelper"/>
<viewmap
- xsi:type="gmfgen:FigureViewmap"
- layoutType="TOOLBAR_LAYOUT"
- figureQualifiedClassName="org.eclipse.gmf.examples.taipan.figures.BuildingShape">
+ 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>
@@ -58,14 +59,16 @@
href="taipan.genmodel#//taipan/Port/buildings"/>
</modelFacet>
<labels
- visualID="3001">
+ 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:FigureViewmap"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <requiredPluginIDs>org.eclipse.gmf.runtime.draw2d.ui</requiredPluginIDs>
- </viewmap>
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getFigureBuildingInfoLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
<modelFacet
xsi:type="gmfgen:FeatureLabelModelFacet"
viewMethod="NATIVE"

Back to the top