Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryIElementFactory.h>
Public Member Functions | |
~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:
extension point="org.blueberry.ui.elementFactories" factory id="com.example.myplugin.MyFactory" class="MyFactory" / /extension
Definition at line 47 of file berryIElementFactory.h.
berry::IElementFactory::~IElementFactory | ( | ) |
Definition at line 21 of file berryIElementFactory.cpp.
|
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