public static void setPreferredStringRepresentation ( GeodesicPositionStringRepresentation representation , boolean useSymbolicDirection ) { final Preferences prefs = Preferences . userNodeForPackage ( GeodesicPosition . class ) ; if ( prefs != null ) { if ( representation == null ) { prefs . remove ( "STRING_REPRESENTATION" ) ; //$NON-NLS-1$ prefs . remove ( "SYMBOL_IN_STRING_REPRESENTATION" ) ; //$NON-NLS-1$ } else { prefs . put ( "STRING_REPRESENTATION" , representation . toString ( ) ) ; //$NON-NLS-1$ prefs . putBoolean ( "SYMBOL_IN_STRING_REPRESENTATION" , useSymbolicDirection ) ; //$NON-NLS-1$ } } }
Set the preferred format of the string representation of a geodesic position .