public static void setPreferredAttributeNameForRoadNumber ( String name ) { final Preferences prefs = Preferences . userNodeForPackage ( RoadNetworkConstants . class ) ; if ( prefs != null ) { if ( name == null || "" . equals ( name ) || DEFAULT_ATTR_ROAD_NUMBER . equalsIgnoreCase ( name ) ) { //$NON-NLS-1$ prefs . remove ( "ROAD_NUMBER_ATTR_NAME" ) ; //$NON-NLS-1$ } else { prefs . put ( "ROAD_NUMBER_ATTR_NAME" , name ) ; //$NON-NLS-1$ } } }
Set the preferred name for the numbers of the roads .