Class SwtPlatform


  • public class SwtPlatform
    extends java.lang.Object
    Models the platforms that SWT binaries are built for, useful for build tools that interact with SWT jars.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object otherRaw)  
      static SwtPlatform fromOS​(OS raw)
      Converts an OS to an SwtPlatform.
      static java.util.List<SwtPlatform> getAll()
      Returns all of the platforms.
      java.lang.String getArch()
      Returns the CPU architecture.
      static SwtPlatform getNative()
      Returns the SwtPlatform for the native platform: 32-bit JVM on 64-bit Windows returns x86_64.
      java.lang.String getOs()
      Returns the operating system.
      static SwtPlatform getRunning()
      Returns the SwtPlatform for the running platform: 32-bit JVM on 64-bit Windows returns x86.
      java.lang.String getWs()
      Returns the windowing system.
      java.lang.String getWuffString()
      Returns the folder name that wuff uses for this SwtPlatform.
      int hashCode()  
      static SwtPlatform parseWsOsArch​(java.lang.String unparsed)
      Parses ws.os.arch strings (which is how SWT bundles are specified).
      java.lang.String platformFilter()
      Returns a string appropriate as an Eclipse-PlatformFilter in a MANIFEST.MF
      java.util.Map<java.lang.String,​java.lang.String> platformProperties()
      Returns a map containing the platform properties.
      OS toOS()
      Converts an SwtPlatform back to an OS.
      java.lang.String toString()
      Returns "ws.os.arch", which is how SWT bundles are named.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getWs

        public java.lang.String getWs()
        Returns the windowing system.
      • getOs

        public java.lang.String getOs()
        Returns the operating system.
      • getArch

        public java.lang.String getArch()
        Returns the CPU architecture.
      • equals

        public boolean equals​(java.lang.Object otherRaw)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Returns "ws.os.arch", which is how SWT bundles are named.
        Overrides:
        toString in class java.lang.Object
      • platformFilter

        public java.lang.String platformFilter()
        Returns a string appropriate as an Eclipse-PlatformFilter in a MANIFEST.MF
      • platformProperties

        public java.util.Map<java.lang.String,​java.lang.String> platformProperties()
        Returns a map containing the platform properties.
      • getWuffString

        public java.lang.String getWuffString()
        Returns the folder name that wuff uses for this SwtPlatform.
      • parseWsOsArch

        public static SwtPlatform parseWsOsArch​(java.lang.String unparsed)
        Parses ws.os.arch strings (which is how SWT bundles are specified).
      • getNative

        public static SwtPlatform getNative()
        Returns the SwtPlatform for the native platform: 32-bit JVM on 64-bit Windows returns x86_64.
      • getRunning

        public static SwtPlatform getRunning()
        Returns the SwtPlatform for the running platform: 32-bit JVM on 64-bit Windows returns x86.
      • fromOS

        public static SwtPlatform fromOS​(OS raw)
        Converts an OS to an SwtPlatform.
      • toOS

        public OS toOS()
        Converts an SwtPlatform back to an OS.
      • getAll

        public static java.util.List<SwtPlatform> getAll()
        Returns all of the platforms.