private void restoreState() { // merge all tracks into one tour final boolean isMergeIntoOneTour = Util.getStateBoolean( _importState, RawDataView.STATE_IS_MERGE_TRACKS, RawDataView.STATE_IS_MERGE_TRACKS_DEFAULT); _chkOneTour.setSelection(isMergeIntoOneTour); // convert waypoints final boolean isConvertWayPoints = Util.getStateBoolean( _importState, RawDataView.STATE_IS_CONVERT_WAYPOINTS, RawDataView.STATE_IS_CONVERT_WAYPOINTS_DEFAULT); _chkConvertWayPoints.setSelection(isConvertWayPoints); // relative/absolute distance final boolean isRelativeDistance = _prefStore.getBoolean(IPreferences.GPX_IS_RELATIVE_DISTANCE_VALUE); _rdoDistanceAbsolute.setSelection(isRelativeDistance == false); _rdoDistanceRelative.setSelection(isRelativeDistance); }
@Override public void dispose() { Util.disposeResource(_imageAltitude); Util.disposeResource(_imageGradient); Util.disposeResource(_imagePulse); Util.disposeResource(_imageSpeed); _tk.dispose(); }