1 11 package org.eclipse.help.internal.base; 12 13 import java.util.Locale ; 14 15 import org.eclipse.core.runtime.*; 16 import org.eclipse.core.runtime.preferences.*; 17 18 20 public class HelpBasePreferenceInitializer extends 21 AbstractPreferenceInitializer { 22 23 28 public void initializeDefaultPreferences() { 29 Preferences prefs = HelpBasePlugin.getDefault().getPluginPreferences(); 30 31 String os = System.getProperty("os.name").toLowerCase(Locale.ENGLISH); 33 if (os.indexOf("windows") != -1) { prefs 35 .setDefault("custom_browser_path", "\"C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE\" %1"); } else if (os.indexOf("linux") != -1) { prefs.setDefault("custom_browser_path", "konqueror %1"); } else { 41 prefs.setDefault("custom_browser_path", "mozilla %1"); } 43 } 44 45 } 46 | Popular Tags |