Class LastSaveComparator
java.lang.Object
org.eclipse.m2m.atl.adt.ui.text.atl.LastSaveComparator
It compares the current input of an editor with the last saved input.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]current2savePosition(int[] current) Gets the save position for the current position.voidMarks the last saved input.int[]save2currentPosition(int[] save) Gets the current position for the save position.
-
Constructor Details
-
LastSaveComparator
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
-