Skip to content

Update SWT.d to 4.7 #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ public static int buildJAVA_VERSION (int major, int minor, int micro) {
public static int buildSWT_VERSION (int major, int minor) {
return .buildSWT_VERSION(major, minor);
}

public static bool isLoadable () {
/*
* DWT: Return true until a reason presents itself otherwise.
*
* SWT uses this function to load the compiled JNI binding for
* the platform implementation.
*/
return true;
}

/+ PORTING_LEFT
static bool extract (String fileName, String mappedName) {
FileOutputStream os = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@ module org.eclipse.swt.internal.Platform;
import java.lang.all;

import org.eclipse.swt.internal.Lock;
import org.eclipse.swt.internal.Library;

public class Platform {
public static const String PLATFORM = "gtk"; //$NON-NLS-1$
public static Lock lock;
static this() {
lock = new Lock();
}

public static bool isLoadable() {
return Library.isLoadable();
}
}
Loading