if( dockable.getParent() != intern() ) {
if( dockable.getParent() != null ) {
dockable.getParent().remove( dockable );
}
Root root = getRoot();
SplitDockPerspective.Leaf leaf = new SplitDockPerspective.Leaf( dockable, null, null, -1 );
if( root.getChild() == null ) {
root.setChild( leaf );
}
else {
root.setChild( new SplitDockPerspective.Node( Orientation.HORIZONTAL, 0.5, leaf, root.getChild(), null, null, -1 ) );
}
}
// store
delegate.setFullscreen( dockable );