private void requestCloseTab(DTab dt) {
final DTabImpl delt = (DTabImpl) dt;
Controller c = delt.getController(); // FIXME:fj: test
// vetoableclosecontroller
if (c instanceof VetoableCloseController) {
VetoableCloseController vcc = (VetoableCloseController) c;
// rembember current dtab, and swap to the temporary one
DTabImpl reTab = curDTab;
doActivateDTab(delt);
boolean immediateClose = vcc.requestForClose();
if (!immediateClose) {
return;
} else {
if (reTab != null) {
doActivateDTab(reTab);