Class ValueWorkingCopy<T>

All Implemented Interfaces:
IEditableModel, IModel, IValue<T>, IValidable
Direct Known Subclasses:
ISingleLanguageFormattedTextModel.SingleLanguageFormattedTextWorkingCopy

public class ValueWorkingCopy<T> extends Value<T>
Value working copy – editable proxy buffer for another value.
  • Constructor Details

    • ValueWorkingCopy

      public ValueWorkingCopy(IValue<T> original)
      Instantiates a new value working copy.
      Parameters:
      original - the original value.
  • Method Details

    • validate

      public org.eclipse.core.runtime.IStatus validate()
      Description copied from interface: IValidable
      Validates this object state.
      Specified by:
      validate in interface IValidable
      Overrides:
      validate in class Validable
      Returns:
      the validation status.
    • getChange

      public IChange getChange()
      Returns:
      change describing the modifications done to the model.
    • isOnline

      public boolean isOnline()
      Specified by:
      isOnline in interface IModel
      Overrides:
      isOnline in class Model
      Returns:
      true if this model is online, false otherwise.
    • getOriginalModel

      protected final IValue<T> getOriginalModel()
      Returns the original value model.
      Returns:
      the original value model.