private static void resetStore ( IPreferenceStore store , String prefix ) { int start = 0 ; // 99 is paranoia. while ( start < 99 ) { String name = prefix + start ; if ( store . contains ( name ) ) { store . setToDefault ( name ) ; } else { break ; } start ++ ; } }
Removes all consequent enumerated keys from given store staring with given prefix