| java.lang.Object org.eclipse.ui.internal.EditorHistoryItem
EditorHistoryItem | public class EditorHistoryItem (Code) | | An item in the editor history.
|
Method Summary | |
public boolean | canSave() Returns whether this history item can be saved. | public IEditorDescriptor | getDescriptor() Returns the editor descriptor. | public String | getFactoryId() Returns the factory id of this item, either from the input if restored,
otherwise from the memento. | public IEditorInput | getInput() Returns the editor input. | public String | getName() Returns the name of this item, either from the input if restored,
otherwise from the memento. | public String | getToolTipText() Returns the tooltip text of this item, either from the input if restored,
otherwise from the memento. | public boolean | isRestored() Returns whether this item has been restored from the memento. | public boolean | matches(IEditorInput input) Returns whether this item matches the given editor input. | public IStatus | restoreState() Restores the object state from the memento. | public IStatus | saveState(IMemento memento) Saves the object state in the given memento. |
EditorHistoryItem | public EditorHistoryItem(IMemento memento)(Code) | | Constructs a new item from a memento.
|
canSave | public boolean canSave()(Code) | | Returns whether this history item can be saved.
|
getFactoryId | public String getFactoryId()(Code) | | Returns the factory id of this item, either from the input if restored,
otherwise from the memento.
Returns null if there is no factory id.
|
getName | public String getName()(Code) | | Returns the name of this item, either from the input if restored,
otherwise from the memento.
|
getToolTipText | public String getToolTipText()(Code) | | Returns the tooltip text of this item, either from the input if restored,
otherwise from the memento.
|
isRestored | public boolean isRestored()(Code) | | Returns whether this item has been restored from the memento.
|
matches | public boolean matches(IEditorInput input)(Code) | | Returns whether this item matches the given editor input.
|
restoreState | public IStatus restoreState()(Code) | | Restores the object state from the memento.
|
saveState | public IStatus saveState(IMemento memento)(Code) | | Saves the object state in the given memento.
Parameters: memento - the memento to save the object state in |
|
|