Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2014-07-28 15:15:54 -0400
committerTom Schindl2014-07-28 15:15:54 -0400
commit43d0ff44e3810abb962f8c880686ec16a15e027f (patch)
treecc1e95911a8ff8e37a7f447b4a630a7c17a42b48 /testcases
parent6be491202347dd56720aa746921f996f386465ff (diff)
downloadorg.eclipse.efxclipse-43d0ff44e3810abb962f8c880686ec16a15e027f.tar.gz
org.eclipse.efxclipse-43d0ff44e3810abb962f8c880686ec16a15e027f.tar.xz
org.eclipse.efxclipse-43d0ff44e3810abb962f8c880686ec16a15e027f.zip
added sample for right align
Diffstat (limited to 'testcases')
-rwxr-xr-xtestcases/org.eclipse.fx.testcases.e4/Application.e4xmi5
-rw-r--r--testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/tool/ProgressControl.java19
-rw-r--r--testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/tool/SpacerDummy.java12
3 files changed, 36 insertions, 0 deletions
diff --git a/testcases/org.eclipse.fx.testcases.e4/Application.e4xmi b/testcases/org.eclipse.fx.testcases.e4/Application.e4xmi
index 6c3ca444d..6f18bd745 100755
--- a/testcases/org.eclipse.fx.testcases.e4/Application.e4xmi
+++ b/testcases/org.eclipse.fx.testcases.e4/Application.e4xmi
@@ -238,9 +238,14 @@
</children>
</trimBars>
<trimBars xmi:id="_W56f0A3tEeSWdaJj_r118A" elementId="org.eclipse.fx.testcases.e4.trimbar.1" side="Bottom">
+ <children xsi:type="menu:ToolControl" xmi:id="_yeLf4BZuEeS6JMmOlvf6LA" elementId="org.eclipse.fx.testcases.e4.toolcontrol.2"/>
<children xsi:type="menu:ToolBar" xmi:id="_YRFHEA3tEeSWdaJj_r118A" elementId="org.eclipse.fx.testcases.e4.toolbar.6">
<children xsi:type="menu:DirectToolItem" xmi:id="_aERjAA3tEeSWdaJj_r118A" elementId="org.eclipse.fx.testcases.e4.directtoolitem.test" label="Test"/>
</children>
+ <children xsi:type="menu:ToolControl" xmi:id="_zz_cQBZuEeS6JMmOlvf6LA" elementId="org.eclipse.fx.testcases.e4.toolcontrol.3" contributionURI="bundleclass://org.eclipse.fx.testcases.e4/org.eclipse.fx.testcases.e4.tool.SpacerDummy">
+ <tags>fillspace</tags>
+ </children>
+ <children xsi:type="menu:ToolControl" xmi:id="_0fID8BZuEeS6JMmOlvf6LA" elementId="org.eclipse.fx.testcases.e4.toolcontrol.4" contributionURI="bundleclass://org.eclipse.fx.testcases.e4/org.eclipse.fx.testcases.e4.tool.ProgressControl"/>
</trimBars>
</children>
<handlers xmi:id="_H2FJYOUcEeGP-5z69KadAQ" elementId="org.eclipse.fx.testcases.e4.handler.0" contributionURI="bundleclass://org.eclipse.fx.testcases.e4/org.eclipse.fx.testcases.e4.handlers.Handler0" command="_FEZr8OUcEeGP-5z69KadAQ"/>
diff --git a/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/tool/ProgressControl.java b/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/tool/ProgressControl.java
new file mode 100644
index 000000000..52cbb677b
--- /dev/null
+++ b/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/tool/ProgressControl.java
@@ -0,0 +1,19 @@
+package org.eclipse.fx.testcases.e4.tool;
+
+import javax.annotation.PostConstruct;
+
+import javafx.scene.Group;
+import javafx.scene.control.Label;
+import javafx.scene.control.ProgressBar;
+import javafx.scene.layout.HBox;
+
+public class ProgressControl {
+ @PostConstruct
+ public void init(Group g) {
+ HBox b = new HBox();
+ ProgressBar bar = new ProgressBar();
+ b.getChildren().add(new Label("Bla Bla"));
+ b.getChildren().add(bar);
+ g.getChildren().add(b);
+ }
+}
diff --git a/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/tool/SpacerDummy.java b/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/tool/SpacerDummy.java
new file mode 100644
index 000000000..1c10b56a2
--- /dev/null
+++ b/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/tool/SpacerDummy.java
@@ -0,0 +1,12 @@
+package org.eclipse.fx.testcases.e4.tool;
+
+import javax.annotation.PostConstruct;
+
+import javafx.scene.Group;
+
+public class SpacerDummy {
+ @PostConstruct
+ public void init(Group g) {
+
+ }
+}

Back to the top