public interface IElementFactory
Clients should implement this interface and include the name of their class
in an extension to the platform extension point named
"org.eclipse.ui.elementFactories"
.
For example, the plug-in's XML markup might contain:
<extension point="org.eclipse.ui.elementFactories"> <factory id="com.example.myplugin.MyFactory" class="com.example.myplugin.MyFactory" /> </extension>
Modifier and Type | Method and Description |
---|---|
IAdaptable |
createElement(IMemento memento)
Re-creates and returns an object from the state captured within the given
memento.
|
IAdaptable createElement(IMemento memento)
If the result is not null, it should be persistable; that is,
result.getAdapter(org.eclipse.ui.IPersistableElement.class)should not return
null
.
memento
- a memento containing the state for the objectnull
if the element could not be
created
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.