Ignore:
Timestamp:
06/13/08 18:00:25 (16 years ago)
Author:
ra33
Message:

Fixed up a few bugs with Saving of frames when actions are performed and with Comet and Tree stats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Actions.java

    r102 r103  
    7474                // Must be a forward slash for loading resources
    7575                String path = pckgname.replace('.', '/');
    76                 //System.out.println("Get classes: " + path);
     76                // System.out.println("Get classes: " + path);
    7777                try {
    7878                        ClassLoader cld = Thread.currentThread().getContextClassLoader();
     
    105105                                        + ") does not appear to be a valid package");
    106106                }
    107                 //System.out.println("Path:" + directory.getPath());
     107                // System.out.println("Path:" + directory.getPath());
    108108                int splitPoint = directory.getPath().indexOf('!');
    109109                if (splitPoint > 0) {
     
    118118                                        jarName = jarName.replace("%20", " ");
    119119                                }
    120                                 //System.out.println("JarName:" + jarName);
     120                                // System.out.println("JarName:" + jarName);
    121121                                JarFile jarFile = new JarFile(jarName);
    122122
     
    138138                                }
    139139                                jarFile.close();
    140                                 //System.out.println("Loaded " + classCount + " classes from "
    141                                 //              + pckgname);
     140                                // System.out.println("Loaded " + classCount + " classes from "
     141                                // + pckgname);
    142142
    143143                        } catch (Exception e) {
     
    291291         */
    292292        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
    295296
    296297                // separate method name and parameter names
     
    381382                name = name.toLowerCase();
    382383                // 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                }
    384389
    385390                try {
Note: See TracChangeset for help on using the changeset viewer.