Class SubsystemPreferences
- java.lang.Object
-
- org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
-
- com.ensoftcorp.open.commons.preferences.SubsystemPreferences
-
public class SubsystemPreferences extends org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
-
-
Constructor Summary
Constructors Constructor Description SubsystemPreferences()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
enableSubsystemCategory(java.lang.String subsystemCategory, boolean enabled)
Enables or disables the subsystem categorystatic org.eclipse.jface.preference.IPreferenceStore
getPreferenceStore()
Returns the preference store used for these preferencesvoid
initializeDefaultPreferences()
static boolean
isSubsystemCategoryEnabled(java.lang.String subsystemCategory)
Returns true if the subsystem category is enabled for taggingstatic void
loadPreferences()
Loads or refreshes current preference valuesstatic void
restoreDefaults()
Restores the default preferences
-
-
-
Method Detail
-
getPreferenceStore
public static org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
Returns the preference store used for these preferences- Returns:
-
enableSubsystemCategory
public static void enableSubsystemCategory(java.lang.String subsystemCategory, boolean enabled)
Enables or disables the subsystem category- Parameters:
subsystemCategory
-enabled
-
-
isSubsystemCategoryEnabled
public static boolean isSubsystemCategoryEnabled(java.lang.String subsystemCategory)
Returns true if the subsystem category is enabled for tagging- Parameters:
subsystemCategory
-- Returns:
-
initializeDefaultPreferences
public void initializeDefaultPreferences()
- Specified by:
initializeDefaultPreferences
in classorg.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
-
restoreDefaults
public static void restoreDefaults()
Restores the default preferences
-
loadPreferences
public static void loadPreferences()
Loads or refreshes current preference values
-
-