Class EditorHistoryItem

java.lang.Object
org.eclipse.ui.internal.EditorHistoryItem

public class EditorHistoryItem extends Object
An item in the editor history.
  • Constructor Details

    • EditorHistoryItem

      public EditorHistoryItem(IEditorInput input, IEditorDescriptor descriptor)
      Constructs a new item.
    • EditorHistoryItem

      public EditorHistoryItem(IMemento memento)
      Constructs a new item from a memento.
  • Method Details

    • getDescriptor

      public IEditorDescriptor getDescriptor()
      Returns the editor descriptor.
      Returns:
      the editor descriptor.
    • getInput

      public IEditorInput getInput()
      Returns the editor input.
      Returns:
      the editor input.
    • isRestored

      public boolean isRestored()
      Returns whether this item has been restored from the memento.
    • getName

      public String getName()
      Returns the name of this item, either from the input if restored, otherwise from the memento.
    • getToolTipText

      public String getToolTipText()
      Returns the tooltip text of this item, either from the input if restored, otherwise from the memento.
    • matches

      public boolean matches(IEditorInput input)
      Returns whether this item matches the given editor input.
    • getFactoryId

      public String getFactoryId()
      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.
    • restoreState

      public IStatus restoreState()
      Restores the object state from the memento.
    • canSave

      public boolean canSave()
      Returns whether this history item can be saved.
    • saveState

      public IStatus saveState(IMemento memento)
      Saves the object state in the given memento.
      Parameters:
      memento - the memento to save the object state in