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 enum
Available display modes for property palette: by categories or ordered alphabetically.static class
Initializes preferences for property palette. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
didDisplayModeChange
(org.eclipse.jface.util.PropertyChangeEvent event) static boolean
didFilterChange
(org.eclipse.jface.util.PropertyChangeEvent event) static boolean
didShowPropertyNamesChanged
(org.eclipse.jface.util.PropertyChangeEvent event) static Preferences.DisplayMode
static String
static org.eclipse.jface.preference.IPreferenceStore
getStore()
static void
setDisplayMode
(Preferences.DisplayMode displayMode) SetsPreferences.DisplayMode
preference to the desired value.static void
Sets the filter text.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.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.DisplayMode
preference to the desired value.- Parameters:
displayMode
- the desired display mode
-
didDisplayModeChange
public static boolean didDisplayModeChange(org.eclipse.jface.util.PropertyChangeEvent event) - Parameters:
event
- aPropertyChangeEvent
event- Returns:
true
if the given event signals ofPreferences.DisplayMode
preference change;false
otherwise
-
showPropertyNames
public static boolean showPropertyNames()- Returns:
true
if property palette should display internal name of the fields;false
if 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
-true
if property palette should display internal name of the fields;false
if human readable captions should be displayed.
-
didShowPropertyNamesChanged
public static boolean didShowPropertyNamesChanged(org.eclipse.jface.util.PropertyChangeEvent event) - Parameters:
event
- aPropertyChangeEvent
event- Returns:
true
if 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
- aPropertyChangeEvent
event- Returns:
true
if 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
-