org.eclipse.cdt.internal.ui
Class PersistableCElementFactory

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.PersistableCElementFactory
All Implemented Interfaces:
org.eclipse.ui.IElementFactory, org.eclipse.ui.IPersistable, org.eclipse.ui.IPersistableElement

public class PersistableCElementFactory
extends java.lang.Object
implements org.eclipse.ui.IElementFactory, org.eclipse.ui.IPersistableElement

The PersistableCElementFactory is used to save and recreate an ICElement object. As such, it implements the IPersistableElement interface for storage and the IElementFactory interface for recreation.

See Also:
IMemento, IPersistableElement, IElementFactory

Constructor Summary
PersistableCElementFactory()
          Create a PersistableCElementFactory.
PersistableCElementFactory(org.eclipse.cdt.core.model.ICElement input)
          Create a PersistableCElementFactory.
 
Method Summary
 org.eclipse.core.runtime.IAdaptable createElement(org.eclipse.ui.IMemento memento)
           
 java.lang.String getFactoryId()
           
 void saveState(org.eclipse.ui.IMemento memento)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistableCElementFactory

public PersistableCElementFactory()
Create a PersistableCElementFactory. This constructor is typically used for our IElementFactory side.


PersistableCElementFactory

public PersistableCElementFactory(org.eclipse.cdt.core.model.ICElement input)
Create a PersistableCElementFactory. This constructor is typically used for our IPersistableElement side.

Method Detail

createElement

public org.eclipse.core.runtime.IAdaptable createElement(org.eclipse.ui.IMemento memento)
Specified by:
createElement in interface org.eclipse.ui.IElementFactory
See Also:
IElementFactory

getFactoryId

public java.lang.String getFactoryId()
Specified by:
getFactoryId in interface org.eclipse.ui.IPersistableElement
See Also:
IPersistableElement

saveState

public void saveState(org.eclipse.ui.IMemento memento)
Specified by:
saveState in interface org.eclipse.ui.IPersistable
See Also:
IPersistableElement