Package com.diffplug.common.swt.os
Class SwtPlatform
- java.lang.Object
-
- com.diffplug.common.swt.os.SwtPlatform
-
public class SwtPlatform extends java.lang.ObjectModels 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 booleanequals(java.lang.Object otherRaw)static SwtPlatformfromOS(OS raw)Converts an OS to an SwtPlatform.static java.util.List<SwtPlatform>getAll()Returns all of the platforms.java.lang.StringgetArch()Returns the CPU architecture.static SwtPlatformgetNative()Returns the SwtPlatform for the native platform: 32-bit JVM on 64-bit Windows returns x86_64.java.lang.StringgetOs()Returns the operating system.static SwtPlatformgetRunning()Returns the SwtPlatform for the running platform: 32-bit JVM on 64-bit Windows returns x86.java.lang.StringgetWs()Returns the windowing system.java.lang.StringgetWuffString()Returns the folder name that wuff uses for this SwtPlatform.inthashCode()static SwtPlatformparseWsOsArch(java.lang.String unparsed)Parses ws.os.arch strings (which is how SWT bundles are specified).java.lang.StringplatformFilter()Returns a string appropriate as an Eclipse-PlatformFilter in a MANIFEST.MFjava.util.Map<java.lang.String,java.lang.String>platformProperties()Returns a map containing the platform properties.OStoOS()Converts an SwtPlatform back to an OS.java.lang.StringtoString()Returns "ws.os.arch", which is how SWT bundles are named.
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Returns "ws.os.arch", which is how SWT bundles are named.- Overrides:
toStringin classjava.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.
-
-