23 #include "internal/berryChangeToPerspectiveMenu.h"
24 #include "internal/berryShowViewMenu.h"
25 #include "internal/berryReopenEditorMenu.h"
26 #include "internal/berrySwitchToWindowMenu.h"
31 : contributionItemId(contributionItemId)
36 return contributionItemId;
49 if (window ==
nullptr)
51 throw ctkInvalidArgumentException(
"window must not be null");
58 const QScopedPointer<ContributionItemFactory>
61 class ViewsShortlistFactory :
public ContributionItemFactory
65 ViewsShortlistFactory()
71 if (window ==
nullptr)
73 throw ctkInvalidArgumentException(
"window must not be null");
80 const QScopedPointer<ContributionItemFactory>
83 class ReopenEditorsFactory :
public ContributionItemFactory
87 ReopenEditorsFactory()
93 if (window ==
nullptr)
95 throw ctkInvalidArgumentException(
"window must not be null");
102 const QScopedPointer<ContributionItemFactory>
105 class PerspectivesShortlistFactory :
public ContributionItemFactory
109 PerspectivesShortlistFactory()
115 if (window ==
nullptr)
117 throw ctkInvalidArgumentException(
"window must not be null");
124 const QScopedPointer<ContributionItemFactory>
berry::SmartPointer< Self > Pointer
static const QScopedPointer< ContributionItemFactory > REOPEN_EDITORS
static const QScopedPointer< ContributionItemFactory > PERSPECTIVES_SHORTLIST
ContributionItemFactory(const QString &contributionItemId)
static const QScopedPointer< ContributionItemFactory > VIEWS_SHORTLIST
static const QScopedPointer< ContributionItemFactory > OPEN_WINDOWS