Class PreferencesHelper

java.lang.Object
org.csstudio.opibuilder.preferences.PreferencesHelper

public class PreferencesHelper extends Object
This is the central place for preference related operations.
  • Field Details

  • Constructor Details

    • PreferencesHelper

      public PreferencesHelper()
  • Method Details

    • getString

      protected static String getString(String preferenceName)
    • getString

      protected static String getString(String preferenceName, String defaultValue)
    • getProbeOPIPath

      public static IPath getProbeOPIPath()
    • getSchemaOPIPath

      public static IPath getSchemaOPIPath()
    • setSchemaOPIPath

      public static void setSchemaOPIPath(IPath path)
    • isAutoSaveBeforeRunning

      public static boolean isAutoSaveBeforeRunning()
    • getGUIRefreshCycle

      public static Integer getGUIRefreshCycle()
    • getPulsingAlarmMinorPeriod

      public static Integer getPulsingAlarmMinorPeriod()
    • getPulsingAlarmMajorPeriod

      public static Integer getPulsingAlarmMajorPeriod()
    • getMacros

      public static LinkedHashMap<String,String> getMacros()
      Get the macros map from preference store.
      Returns:
      the macros map. null if failed to get macros from preference store.
    • getHiddenWidgets

      public static List<String> getHiddenWidgets()
      Returns:
      typeId of widgets that should be hidden from the palette.
    • getPythonPath

      public static Optional<String> getPythonPath() throws Exception
      Throws:
      Exception
    • isShowFullScreenDialog

      public static boolean isShowFullScreenDialog()
    • setShowFullScreenDialog

      public static void setShowFullScreenDialog(boolean show)
    • getAbsolutePathOnRepo

      protected static IPath getAbsolutePathOnRepo(String pathString)
      Return the absolute path based on OPI Repository.