Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF GRaph can't create diamond in Rectangle Figure
GMF GRaph can't create diamond in Rectangle Figure [message #1087350] Thu, 15 August 2013 10:10 Go to next message
serhat gezgin is currently offline serhat gezgin
Messages: 236
Registered: January 2013
Location: Izmir
Senior Member
Hi all,

i write that description to my model. But some shapes dont shown on diagram. Output shape image attached.

leftR Rectangle and body Polygone shape dont created on diagram why dont understand.

Anyone know why this shapes don't appear?

Description :

<descriptors name="TimerTaskFigure">
        <actualFigure xsi:type="gmfgraph:Rectangle" name="TimerTaskFigure" outline="false" fill="false">
          <layout xsi:type="gmfgraph:StackLayout"/>
          <children xsi:type="gmfgraph:Rectangle" name="Resource" outline="false" fill="false">
            <layout xsi:type="gmfgraph:StackLayout"/>
            <children xsi:type="gmfgraph:Rectangle" name="main">
              <layout xsi:type="gmfgraph:BorderLayout"/>
              <foregroundColor xsi:type="gmfgraph:RGBColor"/>
              <backgroundColor xsi:type="gmfgraph:RGBColor" red="255" green="255" blue="255"/>
              <preferredSize dx="90" dy="50"/>
              <children xsi:type="gmfgraph:Rectangle" name="leftR">
                <layoutData xsi:type="gmfgraph:BorderLayoutData" alignment="BEGINNING"/>
                <layout xsi:type="gmfgraph:StackLayout"/>
                <foregroundColor xsi:type="gmfgraph:RGBColor"/>
                <backgroundColor xsi:type="gmfgraph:RGBColor" red="255" green="255" blue="255"/>
                <size x="20" y="50"/>
                <children xsi:type="gmfgraph:Polygon" name="Body">
                  <foregroundColor xsi:type="gmfgraph:RGBColor" red="220" green="220" blue="250"/>
                  <backgroundColor xsi:type="gmfgraph:RGBColor" red="230" green="230" blue="255"/>
                  <template x="10" y="1"/>
                  <template x="19" y="25"/>
                  <template x="10" y="49"/>
                  <template x="1" y="25"/>
                </children>
              </children>
              <children xsi:type="gmfgraph:Rectangle" name="rightR">
                <layoutData xsi:type="gmfgraph:BorderLayoutData" alignment="END"/>
                <foregroundColor xsi:type="gmfgraph:RGBColor"/>
                <backgroundColor xsi:type="gmfgraph:RGBColor" red="255" green="255" blue="255"/>
                <size x="20" y="50"/>
              </children>
            </children>
          </children>
        </actualFigure>
      </descriptors>

[Updated on: Thu, 15 August 2013 10:17]

Report message to a moderator

Re: GMF GRaph can't create diamond in Rectangle Figure [message #1095014 is a reply to message #1087350] Mon, 26 August 2013 10:10 Go to previous message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

hard to tell by just looking at the code. I made the experience that often things like the used layouts, layout data or sizes. A good way to debug is to set the background to a color starting from the very outer shape. This way you can see what from your model ends where in the shape. This takes a while because of steadily regenerating code but is very promising when it comes to debugging.

Ralph
Previous Topic:Web Form (Page) Editor with GMF
Next Topic:how to display multiple instances of same model
Goto Forum:
  


Current Time: Tue Jul 29 11:01:14 EDT 2014

Powered by FUDForum. Page generated in 0.01841 seconds