Changeset 416


Ignore:
Timestamp:
11/20/08 14:36:41 (16 years ago)
Author:
ra33
Message:

Renamed "FramesEdited.stats"
Added @NoSave tag

Location:
trunk/src/org/expeditee
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameIO.java

    r415 r416  
    671671                if (!DisplayIO.isTwinFramesOn()) {
    672672                        if ((titleItem.getX() + 1) < template.getNameItem().getX()) {
    673                                 while (titleItem.getSize() > Text.MINIMUM_FONT_SIZE && titleItem.getBoundsWidth() + titleItem.getX() > template
    674                                                 .getNameItem().getX()) {
     673                                while (titleItem.getSize() > Text.MINIMUM_FONT_SIZE
     674                                                && titleItem.getBoundsWidth() + titleItem.getX() > template
     675                                                                .getNameItem().getX()) {
    675676                                        titleItem.setSize(titleItem.getSize() - 1);
    676                                        
     677
    677678                                }
    678679                        } else {
     
    680681                        }
    681682                }
    682                
     683
    683684                // Assign a width to the title.
    684685                titleItem.setRightMargin(template.getNameItem().getX(), true);
    685                
     686
    686687                return template;
    687688        }
     
    775776        /**
    776777         * Saves a frame.
    777          * @param toSave the frame to save
    778          * @param inc true if the frames counter should be incremented
     778         *
     779         * @param toSave
     780         *            the frame to save
     781         * @param inc
     782         *            true if the frames counter should be incremented
    779783         * @return the text content of the frame
    780784         */
     
    815819                }
    816820
     821                /* Dont save the frame if it has the noSave tag */
     822                if (toSave.hasAnnotation("nosave")) {
     823                        Actions.PerformActionCatchErrors(toSave, null, "Restore");
     824                        return "";
     825                }
     826
    817827                // Save frame that is not local through the Networking classes
    818828                // TODO
     
    821831                }
    822832
    823                 /*Format the frame if it has the autoFormat tag*/
    824                 if(toSave.hasAnnotation("autoformat")){
     833                /* Format the frame if it has the autoFormat tag */
     834                if (toSave.hasAnnotation("autoformat")) {
    825835                        Actions.PerformActionCatchErrors(toSave, null, "Format");
    826836                }
    827                
     837
    828838                /**
    829839                 * Get the full path only to determine which format to use for saving
     
    855865
    856866                        // Check if the frame doesnt exist
    857 //                      if (savedVersion < 0) {
    858 //                              /*
    859 //                              * This will happen if the user has two Expeditee's running at
    860 //                              * once and closes the first. When the second one closes the
    861 //                              * messages directory will have been deleted.
    862 //                              */
    863 //                              MessageBay
    864 //                                              .errorMessage("Could not save frame that does not exist: "
    865 //                                                              + toSave.getName());
    866 //                              return null;
    867 //                      }
     867                        // if (savedVersion < 0) {
     868                        // /*
     869                        // * This will happen if the user has two Expeditee's running at
     870                        // * once and closes the first. When the second one closes the
     871                        // * messages directory will have been deleted.
     872                        // */
     873                        // MessageBay
     874                        // .errorMessage("Could not save frame that does not exist: "
     875                        // + toSave.getName());
     876                        // return null;
     877                        // }
    868878
    869879                        // Check if we are trying to save an out of date version
     
    980990                        return false;
    981991                return toCheck.getPath().equals(PROFILE_PATH);
    982                 //return toCheck.getFramesetName()
    983                 //              .equalsIgnoreCase(UserSettings.ProfileName);
     992                // return toCheck.getFramesetName()
     993                // .equalsIgnoreCase(UserSettings.ProfileName);
    984994        }
    985995
     
    13151325                if (!FrameIO.canAccessFrameset(framesetName))
    13161326                        return false;
    1317                 //Clear the cache
     1327                // Clear the cache
    13181328                _Cache.clear();
    1319                
     1329
    13201330                // Search all the available directories for the directory
    13211331                for (String path : UserSettings.FrameDirs) {
     
    13311341                                if (!dest.getParentFile().exists())
    13321342                                        dest.mkdirs();
    1333                                 // If a frameset with the same name is already in the destination add
     1343                                // If a frameset with the same name is already in the
     1344                                // destination add
    13341345                                // a number to the end
    13351346                                while (dest.exists()) {
  • trunk/src/org/expeditee/stats/StatsLogger.java

    r362 r416  
    1919
    2020        private static String _filename = null;
    21         private static final String FRAMES_EDITED_FILENAME = "FramesEdited.stat";
     21        private static final String FRAMES_EDITED_FILENAME = "FramesEdited.log";
    2222
    2323        /**
Note: See TracChangeset for help on using the changeset viewer.