Class Preferences

java.lang.Object
com._1c.g5.internal.properties.ui.Preferences

public class Preferences extends Object
Set of preferences which define display settings of the property palette.
  • Field Details

    • ALPHABETICALLY_IMAGE_PATH

      public static final String ALPHABETICALLY_IMAGE_PATH
      Key to get alpabetically image path.
      See Also:
    • CATEGORIES_IMAGE_PATH

      public static final String CATEGORIES_IMAGE_PATH
      Key to get categories image path.
      See Also:
  • Constructor Details

    • Preferences

      public Preferences()
  • Method Details

    • getDisplayMode

      public static Preferences.DisplayMode getDisplayMode()
      Returns:
      the desired display mode
    • setDisplayMode

      public static void setDisplayMode(Preferences.DisplayMode displayMode)
      Sets Preferences.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 - a PropertyChangeEvent event
      Returns:
      true if the given event signals of Preferences.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 - a PropertyChangeEvent 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. Otherwise false.
    • setFilter

      public static void setFilter(String filter)
      Sets the filter text.
      Parameters:
      filter - new text.
    • getFilter

      public static String getFilter()
      Returns:
      Filter text.
    • didFilterChange

      public static boolean didFilterChange(org.eclipse.jface.util.PropertyChangeEvent event)
      Parameters:
      event - a PropertyChangeEvent event
      Returns:
      true if the given event signals of change in preference that states whether property palette should filter. Otherwise false.
    • getStore

      public static org.eclipse.jface.preference.IPreferenceStore getStore()
      Returns:
      store of preferences for property palette. Cannot return null