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