Class PlatformPropertiesUtils

  • Direct Known Subclasses:
    PlatformPropertiesUtils.Constants

    public class PlatformPropertiesUtils
    extends java.lang.Object
    Creative copy&paste from org.eclipse.equinox.internal.launcher.Constants and org.eclipse.equinox.launcher.Main.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ARCH_PPC  
      static java.lang.String ARCH_X86  
      static java.lang.String ARCH_X86_64  
      static java.lang.String INTERNAL_AMD64  
      static java.lang.String INTERNAL_ARCH_I386  
      static java.lang.String INTERNAL_OS_AIX  
      static java.lang.String INTERNAL_OS_FREEBSD  
      static java.lang.String INTERNAL_OS_HPUX  
      static java.lang.String INTERNAL_OS_LINUX  
      static java.lang.String INTERNAL_OS_MACOSX  
      static java.lang.String INTERNAL_OS_QNX  
      static java.lang.String INTERNAL_OS_SUNOS  
      static java.lang.String OS_AIX
      Constant string (value "aix") indicating the platform is running on an AIX-based operating system.
      static java.lang.String OS_FREEBSD
      Constant string (value "freebsd") indicating the platform is running on a FreeBSD operating system.
      static java.lang.String OS_HPUX
      Constant string (value "hpux") indicating the platform is running on an HP/UX-based operating system.
      static java.lang.String OS_LINUX
      Constant string (value "linux") indicating the platform is running on a Linux-based operating system.
      static java.lang.String OS_MACOSX
      Constant string (value "macosx") indicating the platform is running on a Mac OS X operating system.
      static java.lang.String OS_QNX
      Constant string (value "qnx") indicating the platform is running on a QNX-based operating system.
      static java.lang.String OS_SOLARIS
      Constant string (value "solaris") indicating the platform is running on a Solaris-based operating system.
      static java.lang.String OS_UNKNOWN
      Constant string (value "unknown") indicating the platform is running on a machine running an unknown operating system.
      static java.lang.String OS_WIN32
      Constant string (value "win32") indicating the platform is running on a Window 32-bit operating system (e.g., Windows 98, NT, 2000).
      static java.lang.String OSGI_ARCH  
      static java.lang.String OSGI_NL  
      static java.lang.String OSGI_OS  
      static java.lang.String OSGI_WS  
      static java.lang.String WS_CARBON
      Constant string (value "carbon") indicating the platform is running on a machine using the Carbon windowing system (Mac OS X).
      static java.lang.String WS_COCOA
      Constant string (value "cocoa") indicating the platform is running on a machine using the Carbon windowing system (Mac OS X).
      static java.lang.String WS_GTK
      Constant string (value "gtk") indicating the platform is running on a machine using the GTK windowing system.
      static java.lang.String WS_MOTIF
      Constant string (value "motif") indicating the platform is running on a machine using the Motif windowing system.
      static java.lang.String WS_PHOTON
      Constant string (value "photon") indicating the platform is running on a machine using the Photon windowing system.
      static java.lang.String WS_UNKNOWN
      Constant string (value "unknown") indicating the platform is running on a machine running an unknown windowing system.
      static java.lang.String WS_WIN32
      Constant string (value "win32") indicating the platform is running on a machine using the Windows windowing system.
      static java.lang.String WS_WPF
      Constant string (value "wpf") indicating the platform is running on a machine using the Windows Presendation Foundation system.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getArch​(java.util.Properties properties)  
      static java.lang.String getOS​(java.util.Properties properties)  
      static java.lang.String getWS​(java.util.Properties properties)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INTERNAL_ARCH_I386

        public static final java.lang.String INTERNAL_ARCH_I386
        See Also:
        Constant Field Values
      • INTERNAL_OS_SUNOS

        public static final java.lang.String INTERNAL_OS_SUNOS
        See Also:
        Constant Field Values
      • INTERNAL_OS_LINUX

        public static final java.lang.String INTERNAL_OS_LINUX
        See Also:
        Constant Field Values
      • INTERNAL_OS_MACOSX

        public static final java.lang.String INTERNAL_OS_MACOSX
        See Also:
        Constant Field Values
      • INTERNAL_OS_HPUX

        public static final java.lang.String INTERNAL_OS_HPUX
        See Also:
        Constant Field Values
      • INTERNAL_OS_FREEBSD

        public static final java.lang.String INTERNAL_OS_FREEBSD
        See Also:
        Constant Field Values
      • OS_WIN32

        public static final java.lang.String OS_WIN32
        Constant string (value "win32") indicating the platform is running on a Window 32-bit operating system (e.g., Windows 98, NT, 2000).
        See Also:
        Constant Field Values
      • OS_LINUX

        public static final java.lang.String OS_LINUX
        Constant string (value "linux") indicating the platform is running on a Linux-based operating system.
        See Also:
        Constant Field Values
      • OS_AIX

        public static final java.lang.String OS_AIX
        Constant string (value "aix") indicating the platform is running on an AIX-based operating system.
        See Also:
        Constant Field Values
      • OS_SOLARIS

        public static final java.lang.String OS_SOLARIS
        Constant string (value "solaris") indicating the platform is running on a Solaris-based operating system.
        See Also:
        Constant Field Values
      • OS_HPUX

        public static final java.lang.String OS_HPUX
        Constant string (value "hpux") indicating the platform is running on an HP/UX-based operating system.
        See Also:
        Constant Field Values
      • OS_QNX

        public static final java.lang.String OS_QNX
        Constant string (value "qnx") indicating the platform is running on a QNX-based operating system.
        See Also:
        Constant Field Values
      • OS_MACOSX

        public static final java.lang.String OS_MACOSX
        Constant string (value "macosx") indicating the platform is running on a Mac OS X operating system.
        See Also:
        Constant Field Values
      • OS_FREEBSD

        public static final java.lang.String OS_FREEBSD
        Constant string (value "freebsd") indicating the platform is running on a FreeBSD operating system.
        See Also:
        Constant Field Values
      • OS_UNKNOWN

        public static final java.lang.String OS_UNKNOWN
        Constant string (value "unknown") indicating the platform is running on a machine running an unknown operating system.
        See Also:
        Constant Field Values
      • WS_WIN32

        public static final java.lang.String WS_WIN32
        Constant string (value "win32") indicating the platform is running on a machine using the Windows windowing system.
        See Also:
        Constant Field Values
      • WS_WPF

        public static final java.lang.String WS_WPF
        Constant string (value "wpf") indicating the platform is running on a machine using the Windows Presendation Foundation system.
        See Also:
        Constant Field Values
      • WS_MOTIF

        public static final java.lang.String WS_MOTIF
        Constant string (value "motif") indicating the platform is running on a machine using the Motif windowing system.
        See Also:
        Constant Field Values
      • WS_GTK

        public static final java.lang.String WS_GTK
        Constant string (value "gtk") indicating the platform is running on a machine using the GTK windowing system.
        See Also:
        Constant Field Values
      • WS_PHOTON

        public static final java.lang.String WS_PHOTON
        Constant string (value "photon") indicating the platform is running on a machine using the Photon windowing system.
        See Also:
        Constant Field Values
      • WS_CARBON

        public static final java.lang.String WS_CARBON
        Constant string (value "carbon") indicating the platform is running on a machine using the Carbon windowing system (Mac OS X).
        See Also:
        Constant Field Values
      • WS_COCOA

        public static final java.lang.String WS_COCOA
        Constant string (value "cocoa") indicating the platform is running on a machine using the Carbon windowing system (Mac OS X).
        See Also:
        Constant Field Values
      • WS_UNKNOWN

        public static final java.lang.String WS_UNKNOWN
        Constant string (value "unknown") indicating the platform is running on a machine running an unknown windowing system.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PlatformPropertiesUtils

        public PlatformPropertiesUtils()
    • Method Detail

      • getWS

        public static java.lang.String getWS​(java.util.Properties properties)
      • getOS

        public static java.lang.String getOS​(java.util.Properties properties)
      • getArch

        public static java.lang.String getArch​(java.util.Properties properties)