Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
#include <berryIMenuService.h>
Additional Inherited Members | |
Public Types inherited from berry::Object | |
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 Public Member Functions inherited from berry::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Protected Member Functions inherited from berry::Object | |
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 |
Protected Attributes inherited from berry::Object | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
Provides services related to the menu architecture within the workbench. It can be used to contribute additional items to the menu, tool bar and status line.
This service can be acquired from your service locator:
IMenuService service = (IMenuService) getSite().getService(IMenuService.class);
Definition at line 44 of file berryIMenuService.h.
|
pure virtual |
Contribute and initialize the contribution factory. This should only be called once per factory. After the call, the factory should be treated as an unmodifiable object.
Note: factories should be removed when no longer necessary. If not, they will be removed when the IServiceLocator used to acquire this service is disposed.
factory | the contribution factory. Must not be null |
berry::IMenuService::berryObjectMacro | ( | berry::IMenuService | ) |
|
pure virtual |
Get the current state of eclipse as seen by the menu service.
|
pure virtual |
Populate a ContributionManager
at the specified starting location with a set of IContributionItems
s. It applies AbstractContributionFactory
s that are stored against the provided location.
mgr | The ContributionManager to populate |
location | The starting location to begin populating this contribution manager. The format is the Menu API URI format. |
|
pure virtual |
Before calling dispose() on a ContributionManager populated by the menu service, you must inform the menu service to release its contributions. This takes care of unregistering any IContributionItems that have their visibleWhen clause managed by this menu service.
mgr | The manager that was populated by a call to PopulateContributionManager |
|
pure virtual |
Remove the contributed factory from the menu service. If the factory is not contained by this service, this call does nothing.
factory | the contribution factory to remove. Must not be null . |