- TWidget active = getDesktop().getActiveChild();
- TSplitPane split = active.splitHorizontal(false,
- new TTerminalWidget(active, active.getX(),
- active.getY(), active.getWidth(), active.getHeight(),
- new TAction() {
- public void DO() {
- if (source.getParent() instanceof TSplitPane) {
- ((TSplitPane) source.getParent()).removeSplit(source, true);
- } else if (source == root) {
- assert (root != null);
- root.remove();
- root = null;
- }
- }
- }));