Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Platform
Release 3.5

Interface IElementFactory

All Known Implementing Classes:
FileEditorInputFactory, FileStoreEditorInputFactory

public interface IElementFactory

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.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" /> 

See Also:
IPersistableElement, IMemento, IWorkbench.getElementFactory(java.lang.String)

Method Summary
  IAdaptable createElement ( IMemento memento)
          Re-creates and returns an object from the state captured within the given memento.

Method Detail


IAdaptable createElement(
IMemento memento)
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,

should not return null.

memento - a memento containing the state for the object
an object, or null if the element could not be created

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire