Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2015-04-28 13:46:54 -0400
committerTom Schindl2015-04-28 13:46:54 -0400
commit1dccb2012d0d11fbbada77fb0b10966a7bf1a72d (patch)
tree9011094fc4cc6b89f782aece7fa66116c80db275 /testcases
parentdb48fb33c5d61b95d1e18b1db56036715c925a42 (diff)
downloadorg.eclipse.efxclipse-1dccb2012d0d11fbbada77fb0b10966a7bf1a72d.tar.gz
org.eclipse.efxclipse-1dccb2012d0d11fbbada77fb0b10966a7bf1a72d.tar.xz
org.eclipse.efxclipse-1dccb2012d0d11fbbada77fb0b10966a7bf1a72d.zip
Bug 465671 - MTrimBar does not appear after MTrimBar#setToBeRendered(
true ) / MTrimBar#setVisible( true )
Diffstat (limited to 'testcases')
-rwxr-xr-xtestcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/parts/ControlPanel.java15
1 files changed, 15 insertions, 0 deletions
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 0bd7c93f4..6e343f0f6 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
@@ -33,6 +33,8 @@ import org.eclipse.e4.ui.model.application.MApplication;
import org.eclipse.e4.ui.model.application.ui.MElementContainer;
import org.eclipse.e4.ui.model.application.ui.advanced.MPerspective;
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
+import org.eclipse.e4.ui.model.application.ui.basic.MTrimBar;
+import org.eclipse.e4.ui.model.application.ui.basic.MTrimmedWindow;
import org.eclipse.e4.ui.model.application.ui.basic.MWindow;
import org.eclipse.e4.ui.model.application.ui.basic.impl.BasicFactoryImpl;
import org.eclipse.e4.ui.model.application.ui.menu.MHandledToolItem;
@@ -594,6 +596,19 @@ public class ControlPanel {
});
box.getChildren().add(button);
}
+
+ {
+ Button button = new Button("Flip trimbar");
+ button.setOnAction(new EventHandler<ActionEvent>() {
+ @Override
+ public void handle(ActionEvent event) {
+ MTrimBar mTrimBar = ((MTrimmedWindow)window).getTrimBars().get(0);
+ mTrimBar.setToBeRendered(! mTrimBar.isToBeRendered());
+ }
+ });
+ box.getChildren().add(button);
+ }
+
p.setTop(box);
}

Back to the top