| <?xml version="1.0" encoding="UTF-8"?> |
| <bind:Section xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bind="http://www.eclipse.org/gmf/2008/Binding" xmlns:ctx="http://www.eclipse.org/gmf/2008/Context" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:widget="http://www.eclipse.org/gmf/2008/Widget" xsi:schemaLocation="http://www.eclipse.org/gmf/2008/Binding ../../org.eclipse.gmf.formtk/model/binding.ecore http://www.eclipse.org/gmf/2008/Context ../../org.eclipse.gmf.formtk/model/context.ecore http://www.eclipse.org/gmf/2008/Widget ../../org.eclipse.gmf.formtk/model/widget.ecore" className="LayoutSection"> |
| <children xsi:type="widget:Group" name="layoutKindRadios" layoutData="//@layout/@data.0" label="Layout"> |
| <children xsi:type="widget:RadioButton" name="r1" label="Flow Layout"/> |
| <children xsi:type="widget:RadioButton" name="r2" label="Border Layout"/> |
| <children xsi:type="widget:RadioButton" name="r3" label="Grid Layout"/> |
| <children xsi:type="widget:RadioButton" name="r4" label="Stack Layout"/> |
| <children xsi:type="widget:RadioButton" name="r5" label="XY Layout"/> |
| <children xsi:type="widget:RadioButton" name="r6" label="Custom Layout"/> |
| <children xsi:type="widget:RadioButton" name="r7" label="None"/> |
| <layout xsi:type="widget:FillLayout" vertical="true"/> |
| </children> |
| <children xsi:type="widget:Group" name="flowLayoutDetails" layoutData="//@layout/@data.1" label="Details"> |
| <children xsi:type="widget:CheckBox" name="flowLayoutIsVertical" layoutData="//@children.1/@layout/@data.0" label="Is Vertical"/> |
| <children xsi:type="widget:CheckBox" name="flowLayoutMatchMinor" layoutData="//@children.1/@layout/@data.1" label="Match minor size"/> |
| <children xsi:type="widget:CheckBox" name="flowLayoutForceSingle" layoutData="//@children.1/@layout/@data.2" label="Force single line"/> |
| <children xsi:type="widget:Spin" name="flowLayoutMajSpacing" label="Major Spacing" maximum="2147483647"/> |
| <children xsi:type="widget:Spin" name="flowLayoutMinSpacing" label="Minor Spacing" maximum="2147483647"/> |
| <children xsi:type="widget:Group" name="flowLayoutAlign" label="Alignment"> |
| <children xsi:type="widget:Combo" name="flowLayoutMajAlign" label="Major"/> |
| <children xsi:type="widget:Combo" name="flowLayoutMinAlign" label="Minor"/> |
| <layout xsi:type="widget:FillLayout" vertical="true"/> |
| </children> |
| <layout xsi:type="widget:GridLayout" columns="2"> |
| <data widget="//@children.1/@children.0" hSpan="2"/> |
| <data widget="//@children.1/@children.1" hSpan="2"/> |
| <data widget="//@children.1/@children.2" hSpan="2"/> |
| </layout> |
| </children> |
| <children xsi:type="widget:Group" name="borderLayoutDetails" layoutData="//@layout/@data.2" label="Spacing"> |
| <children xsi:type="widget:Spin" name="borderLayoutSpacingX" label="Horizontal" maximum="2147483647"/> |
| <children xsi:type="widget:Spin" name="borderLayoutSpacingY" label="Vertical" maximum="2147483647"/> |
| <layout xsi:type="widget:GridLayout" columns="2"/> |
| </children> |
| <children xsi:type="widget:Group" name="gridLayoutDetails" layoutData="//@layout/@data.3" label="Details"> |
| <children xsi:type="widget:Spin" name="gridLayoutColumns" label="Columns #" maximum="2147483647" minimum="1"/> |
| <children xsi:type="widget:CheckBox" name="gridLayoutSameWidth" layoutData="//@children.3/@layout/@data.0" label="Equal"/> |
| <children xsi:type="widget:Group" name="gridLayoutMargins" label="Margins"> |
| <children xsi:type="widget:Spin" name="gridLayoutMarginX" label="dx" maximum="2147483647"/> |
| <children xsi:type="widget:Spin" name="gridLayoutMarginY" label="dy" maximum="2147483647"/> |
| <layout xsi:type="widget:GridLayout" columns="2"/> |
| </children> |
| <children xsi:type="widget:Group" name="gridLayoutSpacing" label="Spacing"> |
| <children xsi:type="widget:Spin" name="gridLayoutSpacingX" label="dx" maximum="2147483647"/> |
| <children xsi:type="widget:Spin" name="gridLayoutSpacingY" label="dy" maximum="2147483647"/> |
| <layout xsi:type="widget:GridLayout" columns="2"/> |
| </children> |
| <layout xsi:type="widget:GridLayout" columns="2"> |
| <data widget="//@children.3/@children.1" hSpan="2"/> |
| </layout> |
| </children> |
| <children xsi:type="widget:Composite" name="customLayoutDetails"> |
| <children xsi:type="widget:TextEntry" name="customLayoutClass" label="Qualified class name:"/> |
| </children> |
| <layout xsi:type="widget:FormLayout"> |
| <data widget="//@children.0"> |
| <left offset="20"/> |
| </data> |
| <data widget="//@children.1"> |
| <left control="//@children.0" offset="20" align="RIGHT"/> |
| </data> |
| <data widget="//@children.2"> |
| <left control="//@children.0" offset="20" align="RIGHT"/> |
| </data> |
| <data widget="//@children.3"> |
| <left control="//@children.0" offset="20" align="RIGHT"/> |
| </data> |
| </layout> |
| <bindings selector="//@input.0" commitCondition="//@conditions.0" widget="//@children.0/@children.0" refreshCondition="//@conditions.0"/> |
| <bindings selector="//@input.0" commitCondition="//@conditions.1" widget="//@children.0/@children.1" refreshCondition="//@conditions.1"/> |
| <bindings selector="//@input.0" commitCondition="//@conditions.2" widget="//@children.0/@children.2" refreshCondition="//@conditions.2"/> |
| <bindings selector="//@input.0" commitCondition="//@conditions.3" widget="//@children.0/@children.3" refreshCondition="//@conditions.3"/> |
| <bindings selector="//@input.0" commitCondition="//@conditions.4" widget="//@children.0/@children.4" refreshCondition="//@conditions.4"/> |
| <bindings selector="//@input.0" commitCondition="//@conditions.5" widget="//@children.0/@children.5" refreshCondition="//@conditions.5"/> |
| <bindings selector="//@input.0" commitCondition="//@conditions.6" widget="//@children.0/@children.6" refreshCondition="//@conditions.6"/> |
| <bindings selector="//@input.0/@children.0" commitCondition="//@conditions.0" widget="//@children.1/@children.0" refreshCondition="//@conditions.0"/> |
| <bindings selector="//@input.0/@children.1" commitCondition="//@conditions.0" widget="//@children.1/@children.1" refreshCondition="//@conditions.0"/> |
| <bindings selector="//@input.0/@children.2" commitCondition="//@conditions.0" widget="//@children.1/@children.2" refreshCondition="//@conditions.0"/> |
| <bindings selector="//@input.0/@children.3" commitCondition="//@conditions.0" widget="//@children.1/@children.3" refreshCondition="//@conditions.0"/> |
| <bindings selector="//@input.0/@children.4" commitCondition="//@conditions.0" widget="//@children.1/@children.4" refreshCondition="//@conditions.0"/> |
| <bindings selector="//@input.0/@children.5/@children.0" commitCondition="//@conditions.1" widget="//@children.2/@children.0" refreshCondition="//@conditions.1"/> |
| <bindings selector="//@input.0/@children.5/@children.1" commitCondition="//@conditions.1" widget="//@children.2/@children.1" refreshCondition="//@conditions.1"/> |
| <bindings selector="//@input.0/@children.6" commitCondition="//@conditions.2" widget="//@children.3/@children.0" refreshCondition="//@conditions.2"/> |
| <bindings selector="//@input.0/@children.7" commitCondition="//@conditions.2" widget="//@children.3/@children.1" refreshCondition="//@conditions.2"/> |
| <bindings selector="//@input.0/@children.8/@children.0" commitCondition="//@conditions.2" widget="//@children.3/@children.2/@children.0" refreshCondition="//@conditions.2"/> |
| <bindings selector="//@input.0/@children.8/@children.1" commitCondition="//@conditions.2" widget="//@children.3/@children.2/@children.1" refreshCondition="//@conditions.2"/> |
| <bindings selector="//@input.0/@children.9/@children.0" commitCondition="//@conditions.2" widget="//@children.3/@children.3/@children.0" refreshCondition="//@conditions.2"/> |
| <bindings selector="//@input.0/@children.9/@children.1" commitCondition="//@conditions.2" widget="//@children.3/@children.3/@children.1" refreshCondition="//@conditions.2"/> |
| <bindings selector="//@input.0/@children.10" commitCondition="//@conditions.5" widget="//@children.4/@children.0" refreshCondition="//@conditions.5"/> |
| <bindings selector="//@input.0/@children.11" commitCondition="//@conditions.0" widget="//@children.1/@children.5/@children.0" refreshCondition="//@conditions.0"/> |
| <bindings selector="//@input.0/@children.12" commitCondition="//@conditions.0" widget="//@children.1/@children.5/@children.1" refreshCondition="//@conditions.0"/> |
| <input xsi:type="ctx:FeatureContext"> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//FlowLayout/vertical"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//FlowLayout/matchMinorSize"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//FlowLayout/forceSingleLine"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//FlowLayout/majorSpacing"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//FlowLayout/minorSpacing"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//Dimension/dx"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//Dimension/dy"/> |
| </children> |
| <selector xsi:type="ecore:EReference" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//BorderLayout/spacing"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//GridLayout/numColumns"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//GridLayout/equalWidth"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//Dimension/dx"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//Dimension/dy"/> |
| </children> |
| <selector xsi:type="ecore:EReference" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//GridLayout/margins"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//Dimension/dx"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//Dimension/dy"/> |
| </children> |
| <selector xsi:type="ecore:EReference" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//GridLayout/spacing"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//CustomClass/qualifiedClassName"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//FlowLayout/minorAlignment"/> |
| </children> |
| <children xsi:type="ctx:FeatureContext"> |
| <selector xsi:type="ecore:EAttribute" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//FlowLayout/majorAlignment"/> |
| </children> |
| <selector xsi:type="ecore:EReference" href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//Layoutable/layout"/> |
| </input> |
| <conditions xsi:type="ctx:InstanceCondition" accessor="//@input.0"> |
| <type href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//FlowLayout"/> |
| </conditions> |
| <conditions xsi:type="ctx:InstanceCondition" accessor="//@input.0"> |
| <type href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//BorderLayout"/> |
| </conditions> |
| <conditions xsi:type="ctx:InstanceCondition" accessor="//@input.0"> |
| <type href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//GridLayout"/> |
| </conditions> |
| <conditions xsi:type="ctx:InstanceCondition" accessor="//@input.0"> |
| <type href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//StackLayout"/> |
| </conditions> |
| <conditions xsi:type="ctx:InstanceCondition" accessor="//@input.0"> |
| <type href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//XYLayout"/> |
| </conditions> |
| <conditions xsi:type="ctx:InstanceCondition" accessor="//@input.0"> |
| <type href="../../../plugin/org.eclipse.gmf.graphdef/models/gmfgraph.ecore#//CustomLayout"/> |
| </conditions> |
| <conditions xsi:type="ctx:EqualsCondition" accessor="//@input.0" value="null"/> |
| <actions widgets="//@children.1" trigger="//@conditions.0"/> |
| <actions widgets="//@children.2" trigger="//@conditions.1"/> |
| <actions widgets="//@children.3" trigger="//@conditions.2"/> |
| <actions widgets="//@children.4" trigger="//@conditions.5"/> |
| </bind:Section> |