Changeset 103 for trunk/src/org/expeditee/actions/Actions.java
- Timestamp:
- 06/13/08 18:00:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/Actions.java
r102 r103 74 74 // Must be a forward slash for loading resources 75 75 String path = pckgname.replace('.', '/'); 76 // System.out.println("Get classes: " + path);76 // System.out.println("Get classes: " + path); 77 77 try { 78 78 ClassLoader cld = Thread.currentThread().getContextClassLoader(); … … 105 105 + ") does not appear to be a valid package"); 106 106 } 107 // System.out.println("Path:" + directory.getPath());107 // System.out.println("Path:" + directory.getPath()); 108 108 int splitPoint = directory.getPath().indexOf('!'); 109 109 if (splitPoint > 0) { … … 118 118 jarName = jarName.replace("%20", " "); 119 119 } 120 // System.out.println("JarName:" + jarName);120 // System.out.println("JarName:" + jarName); 121 121 JarFile jarFile = new JarFile(jarName); 122 122 … … 138 138 } 139 139 jarFile.close(); 140 // System.out.println("Loaded " + classCount + " classes from "141 // 140 // System.out.println("Loaded " + classCount + " classes from " 141 // + pckgname); 142 142 143 143 } catch (Exception e) { … … 291 291 */ 292 292 public static void PerformAction(Frame source, Item launcher, String command) { 293 if (!command.equalsIgnoreCase("Restore")) 294 FrameIO.SaveFrame(source, false); 293 // if (!command.equalsIgnoreCase("Restore")) 294 // FrameIO.SaveFrame(source, false); 295 // TODO make restore UNDO the changes made by the last action 295 296 296 297 // separate method name and parameter names … … 381 382 name = name.toLowerCase(); 382 383 // save the current frame (if necesssary) 383 FrameUtils.LeavingFrame(source); 384 // TODO make this nicer... ie. make Format an action rather than an 385 // agent and save frames only before running agents 386 if (!name.equalsIgnoreCase("format") && !name.equalsIgnoreCase("sort")) { 387 FrameUtils.LeavingFrame(source); 388 } 384 389 385 390 try {
Note:
See TracChangeset
for help on using the changeset viewer.