Class LastSaveComparator

java.lang.Object
org.eclipse.m2m.atl.adt.ui.text.atl.LastSaveComparator

public class LastSaveComparator extends Object
It compares the current input of an editor with the last saved input.
  • Constructor Details

    • LastSaveComparator

      public LastSaveComparator(AtlEditor editor)
      Constructor.
      Parameters:
      editor - is the editor to compare
  • Method Details

    • markAsSave

      public void markAsSave()
      Marks the last saved input.
    • save2currentPosition

      public int[] save2currentPosition(int[] save)
      Gets the current position for the save position.
      Parameters:
      save - is the save position
      Returns:
      the current position
    • current2savePosition

      public int[] current2savePosition(int[] current)
      Gets the save position for the current position.
      Parameters:
      current - is the current position
      Returns:
      the save position