Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <berryIElementFactory.h>
Public Member Functions | |
virtual | ~IElementFactory () |
virtual IAdaptable * | CreateElement (const SmartPointer< IMemento > &memento)=0 |
A factory for re-creating objects from a previously saved memento.
Clients should implement this interface and include the name of their class in an extension to the platform extension point named "org.blueberry.ui.elementFactories"
. For example, the plug-in's XML markup might contain:
Definition at line 44 of file berryIElementFactory.h.
|
virtual |
|
pure virtual |
Re-creates and returns an object from the state captured within the given memento.
If the result is not null, it should be persistable; that is,
result.getAdapter(org.eclipse.ui.IPersistableElement.class)
should not return null
. The caller takes ownership of the result and must delete it when it is not needed any more.
memento | a memento containing the state for the object |
nullptr
if the element could not be created