Example #1
0
 public void setReturnWhenEmptyDestTrack(Track track) {
   Track old = _rweDestTrack;
   _rweDestTrack = track;
   if ((old != null && !old.equals(track)) || (track != null && !track.equals(old))) {
     setDirtyAndFirePropertyChange(RETURN_WHEN_EMPTY_CHANGED_PROPERTY, null, null);
   }
 }
Example #2
0
 public void setFinalDestinationTrack(Track track) {
   Track old = _finalDestTrack;
   _finalDestTrack = track;
   if (track == null) {
     setScheduleItemId(NONE);
   }
   if ((old != null && !old.equals(track)) || (track != null && !track.equals(old))) {
     if (old != null) {
       old.removePropertyChangeListener(this);
       old.deleteReservedInRoute(this);
     }
     if (_finalDestTrack != null) {
       _finalDestTrack.addReservedInRoute(this);
       _finalDestTrack.addPropertyChangeListener(this);
     }
     setDirtyAndFirePropertyChange(FINAL_DESTINATION_TRACK_CHANGED_PROPERTY, old, track);
   }
 }