]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/undo/UndoDeleteDuplicates.java
Version 6, October 2008
[GpsPrune.git] / tim / prune / undo / UndoDeleteDuplicates.java
1 package tim.prune.undo;
2
3 import tim.prune.I18nManager;
4 import tim.prune.data.Track;
5
6 /**
7  * Undo duplicate deletion
8  */
9 public class UndoDeleteDuplicates extends UndoCompress
10 {
11
12         /**
13          * Constructor
14          * @param inTrack Track object
15          */
16         public UndoDeleteDuplicates(Track inTrack)
17         {
18                 super(inTrack);
19         }
20
21
22         /**
23          * @return description of operation including parameters
24          */
25         public String getDescription()
26         {
27                 String desc = I18nManager.getText("undo.deleteduplicates");
28                 if (_numPointsDeleted > 0)
29                         desc = desc + " (" + _numPointsDeleted + ")";
30                 return desc;
31         }
32 }