public static void restoreAllPreferencesToDefault() throws BackingStoreException { IEclipsePreferences rootNode = PreferencesService.getDefault().getRootNode(); clearAll(rootNode); } private static void clearAll(Preferences node) throws BackingStoreException { node.clear(); String[] names = node.childrenNames(); for (String name : names) { clearAll(node.node(name)); } }