DTabImpl dtabi = (DTabImpl) dTab;
Controller c = dtabi.getController();
if (c == null) throw new AssertException("no controller set yet! " + dTab + ", view: " + viewIdentifier);
doActivateDTab(dtabi);
if (viewIdentifier != null && c instanceof Activateable) {
final Activateable activateable = ((Activateable) c);
ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(new Runnable() {
public void run() {
activateable.activate(ureq, viewIdentifier);
}
}, activateable.getUserActivityLogger());
}
// activating a tab is like focusing a new window - we need to adjust the
// guipath since e.g. the button triggering the activation is not
// part of the guipath, but rather the new tab in its initial state.