DockingViewWrapper dvw = new DockingViewWrapper(view.getViewTitle(), view);
dvw.setViewFunction(view);
control.addDockable(dvw);
if (selView != null) {
CLocation cl = selView.getBaseLocation();
if (cl != null) {
if (cl instanceof AbstractStackholdingLocation) {
if (cl instanceof CStackLocation) {
dvw.setLocation(((CStackLocation) cl).stack());
} else {
dvw.setLocation(((AbstractStackholdingLocation) cl).stack(0));
}
} else {
dvw.setLocation(cl.aside());
}
}
}
dvw.setVisible(true);
dvw.setViewActive(true);
view.initFunction();
The code above does not work properly now.
cl type = bibliothek.gui.dock.common.location.TreeLocationLeaf