19 #include <Poco/Bugcheck.h>
28 #include "internal/berryWorkbenchWindowConfigurer.h"
29 #include "internal/berryWorkbenchPlugin.h"
36 return windowConfigurer;
43 this->windowConfigurer = configurer;
59 return actionBarAdvisor;
73 QString key =
"introOpened";
75 if (introOpened && introOpened->GetValue())
82 IPreferences::Pointer workbenchPrefs = WorkbenchPlugin::GetDefault()->GetPreferencesService()->GetSystemPreferences();
86 IIntroManager* introManager = wbConfig->GetWorkbench()->GetIntroManager();
88 bool hasIntro = introManager->
HasIntro();
91 if (hasIntro && (showIntro || isNewIntroContentAvailable))
97 workbenchPrefs->Flush();
124 this->
GetWindowConfigurer().Cast<WorkbenchWindowConfigurer>()->CreateDefaultContents(shell);
virtual void PostWindowClose()
virtual SmartPointer< ActionBarAdvisor > CreateActionBarAdvisor(SmartPointer< IActionBarConfigurer > configurer)
virtual void PostWindowCreate()
virtual void CreateWindowContents(SmartPointer< Shell > shell)
virtual bool PreWindowShellClose()
static const QString SHOW_INTRO
virtual bool SaveState(SmartPointer< IMemento > memento)
virtual void PostWindowOpen()
virtual IIntroPart::Pointer ShowIntro(IWorkbenchWindow::Pointer preferredWindow, bool standby)=0
SmartPointer< IWorkbenchWindowConfigurer > GetWindowConfigurer()
virtual void PreWindowOpen()
virtual bool HasIntro() const =0
virtual void PostWindowRestore()
WorkbenchWindowAdvisor(const SmartPointer< IWorkbenchWindowConfigurer > &configurer)
virtual ~WorkbenchWindowAdvisor()
virtual QWidget * CreateEmptyWindowContents(QWidget *parent)
virtual bool IsNewContentAvailable()=0
SmartPointer< Other > Cast() const
virtual bool RestoreState(SmartPointer< IMemento > memento)