Class Preferences
java.lang.Object
com._1c.g5.internal.properties.ui.Preferences
Set of preferences which define display settings of the property palette.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAvailable display modes for property palette: by categories or ordered alphabetically.static classInitializes preferences for property palette. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandidDisplayModeChange(org.eclipse.jface.util.PropertyChangeEvent event) static booleandidFilterChange(org.eclipse.jface.util.PropertyChangeEvent event) static booleandidShowPropertyNamesChanged(org.eclipse.jface.util.PropertyChangeEvent event) static Preferences.DisplayModestatic Stringstatic org.eclipse.jface.preference.IPreferenceStoregetStore()static voidsetDisplayMode(Preferences.DisplayMode displayMode) SetsPreferences.DisplayModepreference to the desired value.static voidSets the filter text.static voidsetShowPropertyNames(boolean value) Sets a preference that states whether property palette should display either an internal name or a human readable caption for each field.static boolean
-
Field Details
-
ALPHABETICALLY_IMAGE_PATH
Key to get alpabetically image path.- See Also:
-
CATEGORIES_IMAGE_PATH
Key to get categories image path.- See Also:
-
-
Constructor Details
-
Preferences
public Preferences()
-
-
Method Details
-
getDisplayMode
- Returns:
- the desired display mode
-
setDisplayMode
SetsPreferences.DisplayModepreference to the desired value.- Parameters:
displayMode- the desired display mode
-
didDisplayModeChange
public static boolean didDisplayModeChange(org.eclipse.jface.util.PropertyChangeEvent event) - Parameters:
event- aPropertyChangeEventevent- Returns:
trueif the given event signals ofPreferences.DisplayModepreference change;falseotherwise
-
showPropertyNames
public static boolean showPropertyNames()- Returns:
trueif property palette should display internal name of the fields;falseif human readable captions should be displayed.
-
setShowPropertyNames
public static void setShowPropertyNames(boolean value) Sets a preference that states whether property palette should display either an internal name or a human readable caption for each field.- Parameters:
value-trueif property palette should display internal name of the fields;falseif human readable captions should be displayed.
-
didShowPropertyNamesChanged
public static boolean didShowPropertyNamesChanged(org.eclipse.jface.util.PropertyChangeEvent event) - Parameters:
event- aPropertyChangeEventevent- Returns:
trueif the given event signals of change in preference that states whether property palette should display either a human readable caption or an internal name for each field. Otherwisefalse.
-
setFilter
Sets the filter text.- Parameters:
filter- new text.
-
getFilter
- Returns:
- Filter text.
-
didFilterChange
public static boolean didFilterChange(org.eclipse.jface.util.PropertyChangeEvent event) - Parameters:
event- aPropertyChangeEventevent- Returns:
trueif the given event signals of change in preference that states whether property palette should filter. Otherwisefalse.
-
getStore
public static org.eclipse.jface.preference.IPreferenceStore getStore()- Returns:
- store of preferences for property palette. Cannot return
null
-