diff options
author | Silenio Quarti <silenio> | 2010-01-20 19:06:51 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2010-01-20 19:06:51 +0000 |
commit | 474c2966568dbeac4b27fdf3fd88e79d3829d960 (patch) | |
tree | a52cf7b561a3f6a654b46e58c95ea03470c480e3 /bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java | |
parent | d68971a6e0260587a83310e14c5dc867f520359b (diff) | |
download | eclipse.platform.swt-474c2966568dbeac4b27fdf3fd88e79d3829d960.tar.gz eclipse.platform.swt-474c2966568dbeac4b27fdf3fd88e79d3829d960.tar.xz eclipse.platform.swt-474c2966568dbeac4b27fdf3fd88e79d3829d960.zip |
Bug 279772 - Clicking on a batch file from within the eclipse IDE does not run it from the file location
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java index e4a78b2322..2d359b9505 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/motif/org/eclipse/swt/internal/motif/OS.java @@ -181,6 +181,7 @@ public class OS extends C { public static final int SunXK_F37 = 0x1005FF11; public static final int UnmapNotify = 18; public static final int Unsorted = 0x0; + public static final int X_OK = 0x01; public static final int XA_ATOM = 4; public static final int XA_FONT = 18; public static final int XBufferOverflow = 0xFFFFFFFF; @@ -827,6 +828,18 @@ public static final native void FD_ZERO(byte[] fd_set); public static final native int LC_CTYPE(); /** @method flags=const */ public static final native int MB_CUR_MAX(); +/** + * @param path cast=(const char*) + */ +public static final native int _access (byte [] path, int amode); +public static final int access (byte [] path, int amode) { + lock.lock(); + try { + return _access(path, amode); + } finally { + lock.unlock(); + } +} /** @method flags=const */ public static final native int _applicationShellWidgetClass(); public static final int applicationShellWidgetClass() { |