Lines Matching defs:dir
54 String dir;
71 // Holds value of the system property 'user.dir'
147 // Shouldn't save 'user.dir' to 'savedDir'
152 return System.getProperty("user.dir");
199 // After showing we should display 'user.dir' as current directory
372 setFilterEntry(dir,f);
392 savedDir = this.dir;
438 dir = null;
444 * set the entry of the new dir with f
471 this.dir = getParentDirectory();
492 this.dir = d;
494 pathField.setText(dir);
499 target.setDirectory(this.dir);
506 String[] getDirList(String dir) {
507 if (!dir.endsWith("/"))
508 dir = dir + "/";
509 char[] charr = dir.toCharArray();
559 String dir = pathChoice.getSelectedItem();
560 pathField.setText(dir);
575 String dir;
577 dir = getParentDirectory();
580 dir = this.dir + str;
583 File fe = new File(dir);
585 this.dir = dir;
593 String parent = this.dir;
594 if (!this.dir.equals("/")) // If the current directory is "/" leave it alone.
596 if (dir.endsWith("/"))
679 if (this.dir == null) {
688 File f = new File(this.dir, file);
705 public void setDirectory(String dir) {
707 if (dir == null) {
708 this.dir = null;
712 if (dir.equals(this.dir)) {
717 if ((i=dir.indexOf("~")) != -1) {
719 dir = dir.substring(0,i) + System.getProperty("user.home") + dir.substring(i+1,dir.length());
722 File fe = new File(dir).getAbsoluteFile();
726 dir = "./";
727 fe = new File(dir).getAbsoluteFile();
734 dir = this.dir = fe.getCanonicalPath();
736 dir = this.dir = fe.getAbsolutePath();
738 pathField.setText(this.dir);
741 if (dir.endsWith("/")) {
742 this.dir = dir;
745 this.dir = dir + "/";
841 String dir = pathChoice.getSelectedItem();
842 target.setDirectory(dir);
906 public boolean accept(File dir, String fileName) {
908 File f = new File(dir, fileName);