15 #include <Poco/Bugcheck.h> 24 #include "internal/berryWorkbenchWindowConfigurer.h" 32 return windowConfigurer;
39 this->windowConfigurer = configurer;
55 return actionBarAdvisor;
69 QString key =
"introOpened";
71 if (introOpened && introOpened->GetValue())
82 IIntroManager* introManager = wbConfig->GetWorkbench()->GetIntroManager();
84 bool hasIntro = introManager->
HasIntro();
87 if (hasIntro && (showIntro || isNewIntroContentAvailable))
93 workbenchPrefs->Flush();
120 this->
GetWindowConfigurer().Cast<WorkbenchWindowConfigurer>()->CreateDefaultContents(shell);
virtual void PostWindowClose()
SmartPointer< Other > Cast() const
virtual SmartPointer< ActionBarAdvisor > CreateActionBarAdvisor(SmartPointer< IActionBarConfigurer > configurer)
virtual void PostWindowCreate()
virtual void CreateWindowContents(SmartPointer< Shell > shell)
virtual SmartPointer< IPreferences > GetSystemPreferences()=0
virtual bool PreWindowShellClose()
static const QString SHOW_INTRO
static WorkbenchPlugin * GetDefault()
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
IPreferencesService * GetPreferencesService() const
virtual void PostWindowRestore()
WorkbenchWindowAdvisor(const SmartPointer< IWorkbenchWindowConfigurer > &configurer)
virtual ~WorkbenchWindowAdvisor()
virtual QWidget * CreateEmptyWindowContents(QWidget *parent)
virtual bool IsNewContentAvailable()=0
virtual bool RestoreState(SmartPointer< IMemento > memento)