Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2015-04-27 14:47:34 -0400
committerTom Schindl2015-04-27 14:47:34 -0400
commit1a5bc4e56aaa5d9deca46cb34b46812c3e5ee28e (patch)
tree58a2029fd45cfe7a8d3048ed402afe1924157d51 /testcases
parent2624b07c7091f8e21833a9f5895ea720f57d5889 (diff)
downloadorg.eclipse.efxclipse-1a5bc4e56aaa5d9deca46cb34b46812c3e5ee28e.tar.gz
org.eclipse.efxclipse-1a5bc4e56aaa5d9deca46cb34b46812c3e5ee28e.tar.xz
org.eclipse.efxclipse-1a5bc4e56aaa5d9deca46cb34b46812c3e5ee28e.zip
Bug 465545 - EModelService#bringToTop does not work
Diffstat (limited to 'testcases')
-rwxr-xr-xtestcases/org.eclipse.fx.testcases.e4/Application.e4xmi3
-rwxr-xr-xtestcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/parts/ControlPanel.java11
2 files changed, 14 insertions, 0 deletions
diff --git a/testcases/org.eclipse.fx.testcases.e4/Application.e4xmi b/testcases/org.eclipse.fx.testcases.e4/Application.e4xmi
index b653e2fac..a9ddd2163 100755
--- a/testcases/org.eclipse.fx.testcases.e4/Application.e4xmi
+++ b/testcases/org.eclipse.fx.testcases.e4/Application.e4xmi
@@ -302,6 +302,9 @@
<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>
+ <children xsi:type="basic:TrimmedWindow" xmi:id="_IM_0AO0LEeSM24FHcGF0tg" elementId="org.eclipse.fx.testcases.e4.trimmedwindow.2ndTopLevelWindow" label="2nd top level window" x="300" y="300" width="400" height="400">
+ <children xsi:type="basic:Part" xmi:id="_eOrQkO0NEeSM24FHcGF0tg" elementId="org.eclipse.fx.testcases.e4.part.2ndWindowPart" contributionURI="bundleclass://org.eclipse.fx.testcases.e4/org.eclipse.fx.testcases.e4.parts.ContentPanel" label="2nd window part"/>
+ </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"/>
<handlers xmi:id="_0_q1EOqiEeGrz8mV_3Gr5A" elementId="org.eclipse.fx.testcases.e4.handler.0" contributionURI="bundleclass://org.eclipse.fx.testcases.e4/org.eclipse.fx.testcases.e4.handlers.Handler1" command="_3PQSEOqiEeGrz8mV_3Gr5A"/>
<handlers xmi:id="_otsOgO6yEeG4lfn-YKJbJw" elementId="org.eclipse.fx.testcases.e4.handler.0" contributionURI="bundleclass://org.eclipse.fx.testcases.e4/org.eclipse.fx.testcases.e4.handlers.SwitchPerspectiveHandler" command="_kCbZQO6yEeG4lfn-YKJbJw"/>
diff --git a/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/parts/ControlPanel.java b/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/parts/ControlPanel.java
index fa19d6087..0bd7c93f4 100755
--- a/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/parts/ControlPanel.java
+++ b/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/parts/ControlPanel.java
@@ -583,6 +583,17 @@ public class ControlPanel {
});
box.getChildren().add(button);
}
+
+ {
+ Button button = new Button("Bring 2nd window to top");
+ button.setOnAction(new EventHandler<ActionEvent>() {
+ @Override
+ public void handle(ActionEvent event) {
+ modelService.bringToTop(application.getChildren().get(1));
+ }
+ });
+ box.getChildren().add(button);
+ }
p.setTop(box);
}

Back to the top