public static void setPreferredColor ( int color ) { final Preferences prefs = Preferences . userNodeForPackage ( MapElementConstants . class ) ; if ( prefs != null ) { prefs . putInt ( "COLOR" , color ) ; //$NON-NLS-1$ try { prefs . flush ( ) ; } catch ( BackingStoreException exception ) { // } } }
Set the default color for map elements .