Changeset 121 for trunk/src/org/expeditee/gui/FrameIO.java
- Timestamp:
- 07/03/08 16:48:09 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameIO.java
r108 r121 116 116 // do not display errors encountered to the user 117 117 // (they will be shown at load time) 118 FrameGraphics.SupressMessages(true);118 MessageBay.supressMessages(true); 119 119 // loading automatically caches the frame is caching is turned on 120 120 LoadUnknownPath(framename); 121 FrameGraphics.SupressMessages(false);121 MessageBay.supressMessages(false); 122 122 } 123 123 … … 255 255 256 256 if (frame == null) { 257 FrameGraphics.ErrorMessage("Error: " + frameName257 MessageBay.errorMessage("Error: " + frameName 258 258 + " could not be successfully loaded."); 259 259 return null; … … 276 276 e.printStackTrace(); 277 277 Logger.Log(e); 278 FrameGraphics.ErrorMessage("Error: " + frameName278 MessageBay.errorMessage("Error: " + frameName 279 279 + " could not be successfully loaded."); 280 280 } … … 311 311 // if we did not find another Frame then this one must be the last one 312 312 // in the frameset 313 FrameGraphics314 . DisplayMessageOnce("This is the first frame in the frameset");313 MessageBay 314 .displayMessageOnce("This is the first frame in the frameset"); 315 315 return null; 316 316 } … … 335 335 max = ReadINF(current.path, current.getFramesetName()); 336 336 } catch (IOException ioe) { 337 FrameGraphics.ErrorMessage("Error loading INF file for frameset '"337 MessageBay.errorMessage("Error loading INF file for frameset '" 338 338 + name + "'"); 339 339 return null; … … 349 349 // if we did not find another Frame then this one must be the last one 350 350 // in the frameset 351 FrameGraphics352 . DisplayMessageOnce("This is the last frame in the frameset");351 MessageBay 352 .displayMessageOnce("This is the last frame in the frameset"); 353 353 return null; 354 354 } … … 375 375 max = ReadINF(path, framesetName); 376 376 } catch (IOException ioe) { 377 FrameGraphics.ErrorMessage("Error loading INF file for frameset '"377 MessageBay.errorMessage("Error loading INF file for frameset '" 378 378 + framesetName + "'"); 379 379 return null; … … 389 389 // if we did not find another Frame then this one must be the last one 390 390 // 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"); 392 392 return null; 393 393 } … … 701 701 if (savedVersion > toSave.getVersion() 702 702 && !toSave.getFramesetName().equalsIgnoreCase( 703 FrameGraphics.MESSAGES_FRAMESET_NAME)) {703 MessageBay.MESSAGES_FRAMESET_NAME)) { 704 704 // remove this frame from the cache if it is there 705 705 // This will make sure links to the original are set correctly … … 714 714 // Show the messages alerting the user 715 715 Text originalMessage = new Text(-1); 716 originalMessage.setColor( FrameGraphics.ERROR_COLOR);716 originalMessage.setColor(MessageBay.ERROR_COLOR); 717 717 originalMessage.setText(original.getName() 718 718 + " was updated by another user."); 719 719 originalMessage.setLink(original.getName()); 720 720 Text yourMessage = new Text(-1); 721 yourMessage.setColor( FrameGraphics.ERROR_COLOR);721 yourMessage.setColor(MessageBay.ERROR_COLOR); 722 722 yourMessage.setText("Your version was renamed " 723 723 + toSave.getName()); 724 724 yourMessage.setLink(toSave.getName()); 725 FrameGraphics.DisplayMessage(originalMessage);726 FrameGraphics.DisplayMessage(yourMessage);725 MessageBay.displayMessage(originalMessage); 726 MessageBay.displayMessage(yourMessage); 727 727 } else if (checkBackup 728 728 && ItemUtils.ContainsExactTag(toSave.getItems(),
Note:
See TracChangeset
for help on using the changeset viewer.