Ignore:
Timestamp:
07/03/08 16:48:09 (16 years ago)
Author:
bjn8
Message:

Added invalidation for graphics... biiiig commit. LOts of effeciency improvements - now can animate

File:
1 edited

Legend:

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

    r108 r121  
    116116                // do not display errors encountered to the user
    117117                // (they will be shown at load time)
    118                 FrameGraphics.SupressMessages(true);
     118                MessageBay.supressMessages(true);
    119119                // loading automatically caches the frame is caching is turned on
    120120                LoadUnknownPath(framename);
    121                 FrameGraphics.SupressMessages(false);
     121                MessageBay.supressMessages(false);
    122122        }
    123123
     
    255255
    256256                        if (frame == null) {
    257                                 FrameGraphics.ErrorMessage("Error: " + frameName
     257                                MessageBay.errorMessage("Error: " + frameName
    258258                                                + " could not be successfully loaded.");
    259259                                return null;
     
    276276                        e.printStackTrace();
    277277                        Logger.Log(e);
    278                         FrameGraphics.ErrorMessage("Error: " + frameName
     278                        MessageBay.errorMessage("Error: " + frameName
    279279                                        + " could not be successfully loaded.");
    280280                }
     
    311311                // if we did not find another Frame then this one must be the last one
    312312                // in the frameset
    313                 FrameGraphics
    314                                 .DisplayMessageOnce("This is the first frame in the frameset");
     313                MessageBay
     314                                .displayMessageOnce("This is the first frame in the frameset");
    315315                return null;
    316316        }
     
    335335                        max = ReadINF(current.path, current.getFramesetName());
    336336                } catch (IOException ioe) {
    337                         FrameGraphics.ErrorMessage("Error loading INF file for frameset '"
     337                        MessageBay.errorMessage("Error loading INF file for frameset '"
    338338                                        + name + "'");
    339339                        return null;
     
    349349                // if we did not find another Frame then this one must be the last one
    350350                // in the frameset
    351                 FrameGraphics
    352                                 .DisplayMessageOnce("This is the last frame in the frameset");
     351                MessageBay
     352                                .displayMessageOnce("This is the last frame in the frameset");
    353353                return null;
    354354        }
     
    375375                        max = ReadINF(path, framesetName);
    376376                } catch (IOException ioe) {
    377                         FrameGraphics.ErrorMessage("Error loading INF file for frameset '"
     377                        MessageBay.errorMessage("Error loading INF file for frameset '"
    378378                                        + framesetName + "'");
    379379                        return null;
     
    389389                // if we did not find another Frame then this one must be the last one
    390390                // in the frameset
    391                 FrameGraphics.DisplayMessage("This is the last frame in the frameset");
     391                MessageBay.displayMessage("This is the last frame in the frameset");
    392392                return null;
    393393        }
     
    701701                        if (savedVersion > toSave.getVersion()
    702702                                        && !toSave.getFramesetName().equalsIgnoreCase(
    703                                                         FrameGraphics.MESSAGES_FRAMESET_NAME)) {
     703                                                        MessageBay.MESSAGES_FRAMESET_NAME)) {
    704704                                // remove this frame from the cache if it is there
    705705                                // This will make sure links to the original are set correctly
     
    714714                                // Show the messages alerting the user
    715715                                Text originalMessage = new Text(-1);
    716                                 originalMessage.setColor(FrameGraphics.ERROR_COLOR);
     716                                originalMessage.setColor(MessageBay.ERROR_COLOR);
    717717                                originalMessage.setText(original.getName()
    718718                                                + " was updated by another user.");
    719719                                originalMessage.setLink(original.getName());
    720720                                Text yourMessage = new Text(-1);
    721                                 yourMessage.setColor(FrameGraphics.ERROR_COLOR);
     721                                yourMessage.setColor(MessageBay.ERROR_COLOR);
    722722                                yourMessage.setText("Your version was renamed "
    723723                                                + toSave.getName());
    724724                                yourMessage.setLink(toSave.getName());
    725                                 FrameGraphics.DisplayMessage(originalMessage);
    726                                 FrameGraphics.DisplayMessage(yourMessage);
     725                                MessageBay.displayMessage(originalMessage);
     726                                MessageBay.displayMessage(yourMessage);
    727727                        } else if (checkBackup
    728728                                        && ItemUtils.ContainsExactTag(toSave.getItems(),
Note: See TracChangeset for help on using the changeset viewer.