Class DisplayUtils

java.lang.Object
org.csstudio.opibuilder.util.DisplayUtils

public class DisplayUtils extends Object
  • Constructor Details

    • DisplayUtils

      public DisplayUtils()
  • Method Details

    • getDisplay

      public static Display getDisplay()
      Returns a non-null instance of Display object. Tries to find the Display object for the current thread first and if it fails tries to get:
      • Workbench display if the workbench running
      • Default display object
      Returns:
      non-null Display object
    • getDefaultShell

      public static Shell getDefaultShell()
      Attempts to return the default shell. If it cannot return the default shell, it returns the shell of the first workbench window that has shell.