Medical Imaging Interaction Toolkit
2024.12.99-d991a09f
Medical Imaging Interaction Toolkit
|
#include <berryIWorkbenchPage.h>
Static Public Attributes | |
static const QString | EDITOR_ID_ATTR |
static const QString | CHANGE_RESET |
static const QString | CHANGE_RESET_COMPLETE |
static const QString | CHANGE_VIEW_SHOW |
static const QString | CHANGE_VIEW_HIDE |
static const QString | CHANGE_EDITOR_OPEN |
static const QString | CHANGE_EDITOR_CLOSE |
static const QString | CHANGE_EDITOR_AREA_SHOW |
static const QString | CHANGE_EDITOR_AREA_HIDE |
static const QString | CHANGE_ACTION_SET_SHOW |
static const QString | CHANGE_ACTION_SET_HIDE |
static const int | VIEW_ACTIVATE |
static const int | VIEW_VISIBLE |
static const int | VIEW_CREATE |
static const int | MATCH_NONE |
static const int | MATCH_INPUT |
static const int | MATCH_ID |
Additional Inherited Members | |
![]() | |
typedef Object | Self |
typedef berry::SmartPointer< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
![]() | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
![]() | |
Object () | |
virtual | ~Object () |
virtual QDebug | PrintSelf (QDebug os, Indent indent) const |
virtual QDebug | PrintHeader (QDebug os, Indent indent) const |
virtual QDebug | PrintTrailer (QDebug os, Indent indent) const |
![]() | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
A workbench page consists of an arrangement of views and editors intended to be presented together to the user in a single workbench window.
A page can contain 0 or more views and 0 or more editors. These views and editors are contained wholly within the page and are not shared with other pages. The layout and visible action set for the page is defined by a perspective.
The number of views and editors within a page is restricted to simplify part management for the user. In particular:
This interface is not intended to be implemented by clients.
Definition at line 65 of file berryIWorkbenchPage.h.
|
override |
|
pure virtual |
Activates the given part. The part will be brought to the front and given focus. The part must belong to this page.
part | the part to activate |
berry::IWorkbenchPage::berryObjectMacro | ( | berry::IWorkbenchPage | ) |
|
pure virtual |
Moves the given part forward in the Z order of this page so as to make it visible, without changing which part has focus. The part must belong to this page.
part | the part to bring forward |
|
pure virtual |
Closes this workbench page. If this page is the active one, this honor is passed along to one of the window's other pages if possible.
If the page has an open editor with unsaved content, the user will be given the opportunity to save it.
true
if the page was successfully closed, and false
if it is still open
|
pure virtual |
Closes all of the editors belonging to this workbench page.
If the page has open editors with unsaved content and save
is true
, the user will be given the opportunity to save them.
save |
true
if all editors were successfully closed, and false
if at least one is still open
|
pure virtual |
Closes all perspectives in this page. All editors are closed, prompting to save any unsaved changes if saveEditors
is true
. The page itself is closed if closePage
is true
.
saveEditors | whether the page's editors should be saved |
closePage | whether the page itself should be closed |
|
pure virtual |
Closes the given editor. The editor must belong to this workbench page.
If the editor has unsaved content and save
is true
, the user will be given the opportunity to save it.
editor | the editor to close |
save | true to save the editor contents if required (recommended), and false to discard any unsaved changes |
true
if the editor was successfully closed, and false
if the editor is still open
|
pure virtual |
Closes the given Array
of editor references. The editors must belong to this workbench page.
If any of the editors have unsaved content and save
is true
, the user will be given the opportunity to save them.
editorRefs | the editors to close |
save | true to save the editor contents if required (recommended), and false to discard any unsaved changes |
true
if the editors were successfully closed, and false
if the editors are still open
|
pure virtual |
Closes the specified perspective in this page. If the last perspective in this page is closed, then all editors are closed. Views that are not shown in other perspectives are closed as well. If saveParts
is true
, the user will be prompted to save any unsaved changes for parts that are being closed. The page itself is closed if closePage
is true
.
desc | the descriptor of the perspective to be closed |
saveParts | whether the page's parts should be saved if closed |
closePage | whether the page itself should be closed if last perspective |
|
pure virtual |
Returns the editor with the specified input. Returns null if there is no opened editor with that input.
input | the editor input |
input
|
pure virtual |
Returns an array of editor references that match the given input and/or editor id, as specified by the given match flags. Returns an empty array if there are no matching editors, or if matchFlags is MATCH_NONE.
input | the editor input, or null if MATCH_INPUT is not specified in matchFlags |
editorId | the editor id, or null if MATCH_ID is not specified in matchFlags |
matchFlags | a bit mask consisting of zero or more of the MATCH_* constants OR-ed together |
|
pure virtual |
Returns the view in this page with the specified id. There is at most one view in the page with the specified id.
viewId | the id of the view extension to use |
null
if none is found
|
pure virtual |
Returns the view reference with the specified id.
viewId | the id of the view extension to use |
null
if none is found
|
pure virtual |
Returns the view reference with the specified id and secondary id.
viewId | the id of the view extension to use |
secondaryId | the secondary id to use, or null for no secondary id |
null
if none is found
|
pure virtual |
Returns the active editor open in this page.
This is the visible editor on the page, or, if there is more than one visible editor, this is the one most recently brought to top.
null
if no editor is active
|
pure virtual |
Returns a list of dirty editors in this page.
|
pure virtual |
Returns an array of references to open editors in this page.
Note that each page has its own editors; editors are never shared between pages.
|
pure virtual |
Returns a list of the editors open in this page.
Note that each page has its own editors; editors are never shared between pages.
|
pure virtual |
Return the extension tracker for the workbench. This tracker may be used by plug-ins to ensure responsiveness to changes to the plug-in registry.
The tracker at this level of the workbench is typically used to track elements that only exist over the lifespan of a page. For example, ViewPart
objects fall into this category.
|
pure virtual |
Returns the input for this page.
null
if none
|
pure virtual |
Returns the page label. This will be a unique identifier within the containing workbench window.
|
pure virtual |
Returns the descriptors for the perspectives that are open in this page, in the order in which they were opened.
|
pure virtual |
Returns the current perspective descriptor for this page, or null
if there is no current perspective.
null
|
pure virtual |
Returns the perspective shortcuts associated with the current perspective. Returns an empty array if there is no current perspective.
|
pure virtual |
Find the part reference for the given part. A convenience method to quickly go from part to part reference.
part | The part to search for. It can be null . |
null
if no reference can be found.
|
pure virtual |
Returns the show view shortcuts associated with the current perspective. Returns an empty array if there is no current perspective.
|
pure virtual |
Returns the descriptors for the perspectives that are open in this page, in the order in which they were activated (oldest first).
|
pure virtual |
Returns a list of the reference to views visible on this page.
Note that each page has its own views; views are never shared between pages.
|
pure virtual |
Returns a list of the views visible on this page.
Note that each page has its own views; views are never shared between pages.
|
pure virtual |
Returns the workbench window of this page.
|
pure virtual |
Hides the given view. The view must belong to this page.
view | the view to hide |
|
pure virtual |
Hides the given view that belongs to the reference, if any.
view | the references whos view is to be hidden |
|
pure virtual |
Returns true
if the editor is pinned and should not be reused.
editor | the editor to test |
|
pure virtual |
Returns true if perspective with given id contains view with given id Returns whether the specified part is visible.
part | the part to test |
true
if part is visible
|
pure virtual |
Opens an editor on the given input.
If this page already has an editor open on the target input that editor is activated; otherwise, a new editor is opened. Two editor inputs, input1 and input2, are considered the same if
input1.equals(input2) == true
.
The editor type is determined by mapping editorId
to an editor extension registered with the workbench. An editor id is passed rather than an editor object to prevent the accidental creation of more than one editor for the same input. It also guarantees a consistent lifecycle for editors, regardless of whether they are created by the user or restored from saved data.
input | the editor input |
editorId | the id of the editor extension to use |
null
if an external editor was opened PartInitException | if the editor could not be created or initialized |
|
pure virtual |
Opens an editor on the given input.
If this page already has an editor open on the target input that editor is brought to the front; otherwise, a new editor is opened. Two editor inputs are considered the same if they equal. See Object.equals(Object)
and IEditorInput
. If activate == true
the editor will be activated.
The editor type is determined by mapping editorId
to an editor extension registered with the workbench. An editor id is passed rather than an editor object to prevent the accidental creation of more than one editor for the same input. It also guarantees a consistent lifecycle for editors, regardless of whether they are created by the user or restored from saved data.
input | the editor input |
editorId | the id of the editor extension to use |
activate | if true the editor will be activated |
null
if an external editor was opened PartInitException | if the editor could not be created or initialized |
|
pure virtual |
Opens an editor on the given input.
If this page already has an editor open that matches the given input and/or editor id (as specified by the matchFlags argument), that editor is brought to the front; otherwise, a new editor is opened. Two editor inputs are considered the same if they equal. See Object.equals(Object)
and IEditorInput
. If activate == true
the editor will be activated.
The editor type is determined by mapping editorId
to an editor extension registered with the workbench. An editor id is passed rather than an editor object to prevent the accidental creation of more than one editor for the same input. It also guarantees a consistent lifecycle for editors, regardless of whether they are created by the user or restored from saved data.
input | the editor input |
editorId | the id of the editor extension to use |
activate | if true the editor will be activated |
matchFlags | a bit mask consisting of zero or more of the MATCH_* constants OR-ed together |
null
if an external editor was opened PartInitException | if the editor could not be created or initialized |
|
pure virtual |
Changes the visible views, their layout, and the visible action sets within the page to match the current perspective descriptor. This is a rearrangement of components and not a replacement. The contents of the current perspective descriptor are unaffected.
For more information on perspective change see setPerspective()
.
|
pure virtual |
Reuses the specified editor by setting its new input.
editor | the editor to be reused |
input | the new input for the reusable editor |
|
pure virtual |
Saves the contents of all dirty editors belonging to this workbench page. If there are no dirty editors this method returns without effect.
If confirm
is true
the user is prompted to confirm the command.
Note that as of 3.2, this method also saves views that implement ISaveablePart and are dirty.
confirm | true to ask the user before saving unsaved changes (recommended), and false to save unsaved changes without asking |
true
if the command succeeded, and false
if the operation was canceled by the user or an error occurred while saving
|
pure virtual |
Saves the contents of the given editor if dirty. If not, this method returns without effect.
If confirm
is true
the user is prompted to confirm the command. Otherwise, the save happens without prompt.
The editor must belong to this workbench page.
editor | the editor to close |
confirm | true to ask the user before saving unsaved changes (recommended), and false to save unsaved changes without asking |
true
if the command succeeded, and false
if the editor was not saved
|
pure virtual |
Saves the visible views, their layout, and the visible action sets for this page to the current perspective descriptor. The contents of the current perspective descriptor are overwritten.
|
pure virtual |
Saves the visible views, their layout, and the visible action sets for this page to the given perspective descriptor. The contents of the given perspective descriptor are overwritten and it is made the current one for this page.
perspective | the perspective descriptor to save to |
|
pure virtual |
Changes the visible views, their layout, and the visible action sets within the page to match the given perspective descriptor. This is a rearrangement of components and not a replacement. The contents of the old perspective descriptor are unaffected.
When a perspective change occurs the old perspective is deactivated (hidden) and cached for future reference. Then the new perspective is activated (shown). The views within the page are shared by all existing perspectives to make it easy for the user to switch between one perspective and another quickly without loss of context.
During activation the action sets are modified. If an action set is specified in the new perspective which is not visible in the old one it will be created. If an old action set is not specified in the new perspective it will be disposed.
The visible views and their layout within the page also change. If a view is specified in the new perspective which is not visible in the old one a new instance of the view will be created. If an old view is not specified in the new perspective it will be hidden. This view may reappear if the user selects it from the View menu or if they switch to a perspective (which may be the old one) where the view is visible.
The open editors are not modified by this method.
perspective | the perspective descriptor |
|
pure virtual |
Shows the view identified by the given view id in this page and gives it focus. If there is a view identified by the given view id (and with no secondary id) already open in this page, it is given focus.
viewId | the id of the view extension to use |
PartInitException | if the view could not be initialized |
|
pure virtual |
Shows a view in this page with the given id and secondary id. The behaviour of this method varies based on the supplied mode. If VIEW_ACTIVATE
is supplied, the view is focus. If VIEW_VISIBLE
is supplied, then it is made visible but not given focus. Finally, if VIEW_CREATE
is supplied the view is created and will only be made visible if it is not created in a folder that already contains visible views.
This allows multiple instances of a particular view to be created. They are disambiguated using the secondary id. If a secondary id is given, the view must allow multiple instances by having specified allowMultiple="true" in its extension.
viewId | the id of the view extension to use |
secondaryId | the secondary id to use, or null for no secondary id |
mode | the activation mode. Must be VIEW_ACTIVATE, VIEW_VISIBLE or VIEW_CREATE |
PartInitException | if the view could not be initialized |
IllegalArgumentException | if the supplied mode is not valid |
|
static |
Change event id when an action set is hidden in a perspective.
Definition at line 154 of file berryIWorkbenchPage.h.
|
static |
Change event id when an action set is shown in a perspective.
Definition at line 147 of file berryIWorkbenchPage.h.
|
static |
Change event id when the editor area is hidden in a perspective.
Definition at line 140 of file berryIWorkbenchPage.h.
|
static |
Change event id when the editor area is shown in a perspective.
Definition at line 133 of file berryIWorkbenchPage.h.
|
static |
Change event id when one or more editors are closed in a perspective.
Definition at line 126 of file berryIWorkbenchPage.h.
|
static |
Change event id when one or more editors are opened in a perspective.
Definition at line 119 of file berryIWorkbenchPage.h.
|
static |
Change event id when the perspective is reset to its original state.
Definition at line 89 of file berryIWorkbenchPage.h.
|
static |
Change event id when the perspective has completed a reset to its original state.
Definition at line 98 of file berryIWorkbenchPage.h.
|
static |
Change event id when one or more views are hidden in a perspective.
Definition at line 112 of file berryIWorkbenchPage.h.
|
static |
Change event id when one or more views are shown in a perspective.
Definition at line 105 of file berryIWorkbenchPage.h.
|
static |
An optional attribute within a workspace marker (IMarker
) which identifies the preferred editor type to be opened when openEditor
is called.
IDE.EDITOR_ID_ATTR
. Definition at line 82 of file berryIWorkbenchPage.h.
|
static |
Editor opening match mode specifying that the editor id should be considered when matching against existing editors.
Definition at line 194 of file berryIWorkbenchPage.h.
|
static |
Editor opening match mode specifying that the editor input should be considered when matching against existing editors.
Definition at line 188 of file berryIWorkbenchPage.h.
|
static |
Editor opening match mode specifying that no matching against existing editors should be done.
Definition at line 182 of file berryIWorkbenchPage.h.
|
static |
Show view mode that indicates the view should be made visible and activated. Use of this mode has the same effect as calling ShowView .
Definition at line 161 of file berryIWorkbenchPage.h.
|
static |
Show view mode that indicates the view should be made created but not necessarily be made visible. It will only be made visible in the event that it is opened in its own container. In other words, only if it is not stacked with another view.
Definition at line 176 of file berryIWorkbenchPage.h.
|
static |
Show view mode that indicates the view should be made visible. If the view is opened in the container that contains the active view then this has the same effect as VIEW_CREATE
.
Definition at line 168 of file berryIWorkbenchPage.h.