@Override
public void createPartControl(IApplicationTaskPane parent) {
super.createPartControl(parent);
AbstractAIFSession session = Activator.getDefault().getSessionService().getActivePerspectiveSession();
if (session instanceof TCSession && session.isLoggedIn()) {
setHeaderEnabled(true);
((TCSession) session).addAIFComponentEventListener(this);
} else {
setHeaderEnabled(false);
}