implement a few classpath methods required by SWT for Win32

This commit is contained in:
Joel Dice
2007-10-29 14:57:33 -06:00
parent 7aecdb6ce0
commit 75d4a4ff96
5 changed files with 34 additions and 0 deletions

View File

@ -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) {