[Jsmooth-cvs] jsmooth/sample/src JSmoothPropertiesDisplayer.java, 1.11, 1.12
Status: Beta
Brought to you by:
reyes
From: Rodrigo R. <re...@us...> - 2007-05-19 15:23:21
|
Update of /cvsroot/jsmooth/jsmooth/sample/src In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv24829/sample/src Modified Files: JSmoothPropertiesDisplayer.java Log Message: modified the jni test procedure Index: JSmoothPropertiesDisplayer.java =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/sample/src/JSmoothPropertiesDisplayer.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** JSmoothPropertiesDisplayer.java 18 May 2007 21:35:29 -0000 1.11 --- JSmoothPropertiesDisplayer.java 19 May 2007 15:21:51 -0000 1.12 *************** *** 86,102 **** jsmooth.DriveInfo di = jsmooth.Native.getDriveInfo(f); System.out.println("DriveInfo: " + di + " = " + di.toString()); System.out.println("path: " + jsmooth.Native.getExecutablePath()); System.out.println("filename: " + jsmooth.Native.getExecutableName()); ! jsmooth.Native.shellExecute(jsmooth.Native.SHELLEXECUTE_OPEN, ! "service.log", null, null, ! jsmooth.Native.SW_SHOWNORMAL); ! jsmooth.Native.shellExecute(jsmooth.Native.SHELLEXECUTE_FIND, ! "c:\\TEMP", null, null, ! jsmooth.Native.SW_SHOWNORMAL); ! jsmooth.Native.shellExecute(jsmooth.Native.SHELLEXECUTE_EXPLORE, ! "z:\\", null, null, ! jsmooth.Native.SW_SHOWNORMAL); // System.out.println("RES: " + jsmooth.Native.exitWindows(jsmooth.Native.EXITWINDOWS_REBOOT | jsmooth.Native.EXITWINDOWS_FORCE )); --- 86,112 ---- jsmooth.DriveInfo di = jsmooth.Native.getDriveInfo(f); + if (di.getDriveType() == jsmooth.DriveInfo.DRIVE_REMOVABLE) + { + // This file is on a removeable drive ! + } + if (di.getFreeSpaceForUser() < (1024*1024*64)) + { + // there are less than 64MB free for the + // user on this drive ! + } + System.out.println("DriveInfo: " + di + " = " + di.toString()); System.out.println("path: " + jsmooth.Native.getExecutablePath()); System.out.println("filename: " + jsmooth.Native.getExecutableName()); ! // jsmooth.Native.shellExecute(jsmooth.Native.SHELLEXECUTE_OPEN, ! // "service.log", null, null, ! // jsmooth.Native.SW_SHOWNORMAL); ! // jsmooth.Native.shellExecute(jsmooth.Native.SHELLEXECUTE_FIND, ! // "c:\\TEMP", null, null, ! // jsmooth.Native.SW_SHOWNORMAL); ! // jsmooth.Native.shellExecute(jsmooth.Native.SHELLEXECUTE_EXPLORE, ! // "z:\\", null, null, ! // jsmooth.Native.SW_SHOWNORMAL); // System.out.println("RES: " + jsmooth.Native.exitWindows(jsmooth.Native.EXITWINDOWS_REBOOT | jsmooth.Native.EXITWINDOWS_FORCE )); |