mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
implement a few classpath methods required by SWT for Win32
This commit is contained in:
@ -23,6 +23,12 @@ public class File {
|
||||
this(parent.getPath() + FileSeparator + child);
|
||||
}
|
||||
|
||||
private static native boolean isDirectory(String path);
|
||||
|
||||
public boolean isDirectory() {
|
||||
return isDirectory(path);
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
int index = path.lastIndexOf(FileSeparator);
|
||||
if (index >= 0) {
|
||||
|
Reference in New Issue
Block a user