X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fdata%2FSelection.java;h=cdbe58ecca33035a7a012d5ee5e3be402e422ccc;hp=b26c11ff7bbca551bbc4f6574dc4123259512fc0;hb=ca9bdb3916f9c39adbbf95d06ac95c21dafbb4e6;hpb=63f178fd6c6b30b99a01f2a2d700963ea2dfef8b diff --git a/tim/prune/data/Selection.java b/tim/prune/data/Selection.java index b26c11f..cdbe58e 100644 --- a/tim/prune/data/Selection.java +++ b/tim/prune/data/Selection.java @@ -10,7 +10,6 @@ import tim.prune.UpdateMessageBroker; public class Selection { private Track _track = null; - private UpdateMessageBroker _broker = null; private int _currentPoint = -1; private boolean _valid = false; private int _startIndex = -1, _endIndex = -1; @@ -25,12 +24,10 @@ public class Selection /** * Constructor * @param inTrack track object - * @param inBroker broker object */ - public Selection(Track inTrack, UpdateMessageBroker inBroker) + public Selection(Track inTrack) { _track = inTrack; - _broker = inBroker; } @@ -304,7 +301,7 @@ public class Selection } } reset(); - _broker.informSubscribers(); + UpdateMessageBroker.informSubscribers(); } @@ -337,7 +334,7 @@ public class Selection } } reset(); - _broker.informSubscribers(); + UpdateMessageBroker.informSubscribers(); } @@ -419,7 +416,6 @@ public class Selection return _currentPhotoIndex; } - /** * Check that the selection still makes sense * and fire update message to listeners @@ -450,6 +446,6 @@ public class Selection _currentPoint = _startIndex = _endIndex = -1; } } - _broker.informSubscribers(DataSubscriber.SELECTION_CHANGED); + UpdateMessageBroker.informSubscribers(DataSubscriber.SELECTION_CHANGED); } }