Community
Participate
Working Groups
}
/**
* Used to explicitly close and remove a DW that's being closed
* but that has no visible views. See bug 234484.
*
* @param dw The DW to close
*/
public void closeDetachedWindow(DetachedWindow dw) {
dw.getShell().close();
detachedWindowList.remove(dw);
* Add a part to the presentation.
* Note: unlike all other LayoutParts, PartPlaceholders will still point to
List views = new ArrayList();
collectViewPanes(views, getChildren());
// Surgical fix: -explicitly- close and remove
// this DW if it's already empty. See bug 234484.
if (views.size() == 0) {
page.getActivePerspective().getPresentation().closeDetachedWindow(this);
// Save any drty views
if (!handleSaves(views)) {
return false; // User canceled the save