Module jEdit

Class OperatingSystem

java.lang.Object
org.gjt.sp.jedit.OperatingSystem

public class OperatingSystem extends Object
Operating system detection routines.
Since:
jEdit 4.0pre4
Version:
$Id: OperatingSystem.java 24918 2019-08-13 14:18:47Z vampire0 $
Author:
Slava Pestov
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Rectangle
    Returns the bounds of the default screen.
    static Rectangle
    Returns the bounds of the (virtual) screen that the window should be in
    static boolean
    Deprecated.
    - there is no point in checking for this since we require Java 11.
    static boolean
    Returns whether the screen menu bar on Mac OS X is in use.
    static boolean
     
    static boolean
    Deprecated.
    static boolean
    Returns if we're running MacOS X.
    static boolean
    Returns if we're running MacOS X and using the native look and feel.
    static boolean
    Returns if we're running OS/2.
    static boolean
    Returns if we're running Unix (this includes MacOS X).
    static boolean
    Returns if we're running VMS.
    static boolean
    Returns if we're running Windows 95/98/ME/NT/2000/XP/Vista/Win7.
    static boolean
    Returns if we're running Windows 95/98/ME.
    static boolean
    Returns if we're running Windows NT/2000/XP/Vista/Win7.
    static boolean
    Returns if this OS is likely to be using X11 as the graphics system.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OperatingSystem

      public OperatingSystem()
  • Method Details

    • getScreenBounds

      public static Rectangle getScreenBounds()
      Returns the bounds of the default screen.
    • getScreenBounds

      public static Rectangle getScreenBounds(Rectangle window)
      Returns the bounds of the (virtual) screen that the window should be in
      Parameters:
      window - The bounds of the window to get the screen for
    • isDOSDerived

      @Deprecated public static boolean isDOSDerived()
      Deprecated.
      Returns if we're running Windows 95/98/ME/NT/2000/XP/Vista/Win7, or OS/2.
    • isWindows

      public static boolean isWindows()
      Returns if we're running Windows 95/98/ME/NT/2000/XP/Vista/Win7.
    • isWindows9x

      public static boolean isWindows9x()
      Returns if we're running Windows 95/98/ME.
    • isWindowsNT

      public static boolean isWindowsNT()
      Returns if we're running Windows NT/2000/XP/Vista/Win7.
    • isOS2

      public static boolean isOS2()
      Returns if we're running OS/2.
    • isUnix

      public static boolean isUnix()
      Returns if we're running Unix (this includes MacOS X).
    • isMacOS

      public static boolean isMacOS()
      Returns if we're running MacOS X.
    • isX11

      public static boolean isX11()
      Returns if this OS is likely to be using X11 as the graphics system.
      Since:
      jEdit 4.2pre3
    • isVMS

      public static boolean isVMS()
      Returns if we're running VMS.
    • isMacOSLF

      public static boolean isMacOSLF()
      Returns if we're running MacOS X and using the native look and feel.
    • hasScreenMenuBar

      public static boolean hasScreenMenuBar()
      Returns whether the screen menu bar on Mac OS X is in use.
      Since:
      jEdit 4.2pre1
    • hasJava17

      @Deprecated public static boolean hasJava17()
      Deprecated.
      - there is no point in checking for this since we require Java 11. Returns if Java 2 version 1.7 is in use.
      Since:
      jEdit 5.0pre1
    • isCaseInsensitiveFS

      public static boolean isCaseInsensitiveFS()
      Since:
      jEdit 4.3pre2