Bug 17884 Java->Appearance preference page doesn't resize well
Build: 20020521 The "Compression pattern" text field in the Java->Appearance preference page doesn't shrink when the user makes the preference page dialog narrower. It should shrink to fit, unless doing so will hide the text in the field.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/AppearancePreferencePage.java
}
	
	public static boolean showOverrideIndicators() {
		return JavaPlugin.getDefault().getPreferenceStore().getBoolean(PREF_OVERRIDE_INDICATOR);
	}	
	public static boolean showCompilationUnitChildren() {
		return JavaPlugin.getDefault().getPreferenceStore().getBoolean(SHOW_CU_CHILDREN);
	}
	public static String getPkgNamePatternForPackagesView() {
		if (! isCompressingEnabled())
			return "";
		return JavaPlugin.getDefault().getPreferenceStore().getString(PREF_PKG_NAME_PATTERN_FOR_PKG_VIEW);
	}
	public static boolean isCompressingPkgNameInPackagesView() {
		return isCompressingEnabled() && getPkgNamePatternForPackagesView().length() > 0;
	}
	private static boolean isCompressingEnabled() {
		return JavaPlugin.getDefault().getPreferenceStore().getBoolean(PREF_COMPRESS_PACKAGE_NAMES);
	}
	
	/**
	 * Initializes the current options (read from preference store)
	 */
	public static void initDefaults(IPreferenceStore prefs) {
		prefs.setDefault(PREF_COMPRESS_PACKAGE_NAMES, false);
		prefs.setDefault(PREF_METHOD_RETURNTYPE, false);
		prefs.setDefault(PREF_OVERRIDE_INDICATOR, true);
		prefs.setDefault(SHOW_CU_CHILDREN, true);
		prefs.setDefault(STACK_BROWSING_VIEWS_VERTICALLY, false);
		prefs.setDefault(PREF_PKG_NAME_PATTERN_FOR_PKG_VIEW, "");