Class MapWorkingCopy<K,V>

All Implemented Interfaces:
IEditableModel, IModel, IMap<K,V>, IValidable, Map<K,V>
Direct Known Subclasses:
IMultilanguageFormattedTextModel.MultilanguageFormattedTextWorkingCopy

public class MapWorkingCopy<K,V> extends MapModel<K,V>
Map working copy – editable proxy buffer for another map.
  • Constructor Details

    • MapWorkingCopy

      public MapWorkingCopy(IMap<K,V> original)
      Instantiates a new map working copy.
      Parameters:
      original - the original map.
  • 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 IMap<K,V> getOriginalModel()
      Returns the original map model.
      Returns:
      the original map model.