Skip to content

Commit 2d90bbc

Browse files
committed
Added toSwt() to OS.
1 parent bb6ba1b commit 2d90bbc

File tree

1 file changed

+5
-0
lines changed
  • durian-swt.os/src/main/java/com/diffplug/common/swt/os

1 file changed

+5
-0
lines changed

durian-swt.os/src/main/java/com/diffplug/common/swt/os/OS.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ public String osDotArch() {
8181
return os() + "." + arch();
8282
}
8383

84+
/** windowing.os.arch */
85+
public String toSwt() {
86+
return winMacLinux("win32", "cocoa", "gtk") + "." + winMacLinux("win32", "macosx", "linux") + "." + getArch().x86x64("x86", "x86_64");
87+
}
88+
8489
/** Returns the native OS: 32-bit JVM on 64-bit Windows returns OS.WIN_64. */
8590
public static OS getNative() {
8691
return NATIVE_OS;

0 commit comments

Comments
 (0)