- private void splitVertical() {
- // TODO
- }
-
- /**
- * Perform the horizontal split.
- */
- private void splitHorizontal() {
- // TODO
+ private void createRootTerminal() {
+ assert (root == null);
+ root = new TTerminalWidget(getDesktop(), 0, 0,
+ getDesktop().getWidth(), getDesktop().getHeight(),
+ new TAction() {
+ public void DO() {
+ TWidget target = (TWidget) data;
+ if (target.getParent() instanceof TPanel) {
+ ((TSplitPane) target.getParent().getParent()).removeSplit(target, true);
+ } else {
+ assert (root != null);
+ root.remove();
+ root = null;
+ }
+ }
+ });