MIRA
|
An interface for an adaptable object. More...
#include <rcp/Adaptable.h>
Public Member Functions | |
virtual | ~IAdaptable () |
virtual Object * | getAdapter (const Class &adapter)=0 |
Returns an object which is an instance of the given class associated with this object. More... | |
An interface for an adaptable object.
Adaptable objects can be dynamically extended to provide different interfaces (or "adapters"). Adapters are created by adapter factories. (Docu taken from Eclipse Platform SDK)
|
inlinevirtual |
Returns an object which is an instance of the given class associated with this object.
Returns nullptr if no such object can be found. The implementation if IAdaptable is responsible for destroying the instance of the created object.
Implemented in VisualizationView, and WorkbenchPart.