Class SwtPlatform
java.lang.Object
org.standardout.gradle.plugin.platform.internal.osdetect.SwtPlatform
Models the platforms that SWT binaries are built for, useful for build tools that interact with SWT jars.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SwtPlatformConverts an OS to an SwtPlatform.static List<SwtPlatform>getAll()Returns all of the platforms.getArch()Returns the CPU architecture.static SwtPlatformReturns the SwtPlatform for the native platform: 32-bit JVM on 64-bit Windows returns x86_64.getOs()Returns the operating system.static SwtPlatformReturns the SwtPlatform for the running platform: 32-bit JVM on 64-bit Windows returns x86.getWs()Returns the windowing system.Returns the folder name that wuff uses for this SwtPlatform.inthashCode()static SwtPlatformparseWsOsArch(String unparsed) Parses ws.os.arch strings (which is how SWT bundles are specified).Returns a string appropriate as an Eclipse-PlatformFilter in a MANIFEST.MFReturns a map containing the platform properties.toString()Returns "ws.os.arch", which is how SWT bundles are named.
-
Method Details
-
getWs
Returns the windowing system. -
getOs
Returns the operating system. -
getArch
Returns the CPU architecture. -
equals
-
hashCode
public int hashCode() -
toString
Returns "ws.os.arch", which is how SWT bundles are named. -
platformFilter
Returns a string appropriate as an Eclipse-PlatformFilter in a MANIFEST.MF -
platformProperties
Returns a map containing the platform properties. -
getWuffString
Returns the folder name that wuff uses for this SwtPlatform. -
parseWsOsArch
Parses ws.os.arch strings (which is how SWT bundles are specified). -
getNative
Returns the SwtPlatform for the native platform: 32-bit JVM on 64-bit Windows returns x86_64. -
getRunning
Returns the SwtPlatform for the running platform: 32-bit JVM on 64-bit Windows returns x86. -
fromOS
Converts an OS to an SwtPlatform. -
getAll
Returns all of the platforms.
-