コード例 #1
0
  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);
  }
コード例 #2
0
  @Override
  public void dispose() {

    Util.disposeResource(_imageAltitude);
    Util.disposeResource(_imageGradient);
    Util.disposeResource(_imagePulse);
    Util.disposeResource(_imageSpeed);

    _tk.dispose();
  }