Changeset 121 for trunk/src/org/expeditee/actions/Actions.java
- Timestamp:
- 07/03/08 16:48:09 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/Actions.java
r115 r121 19 19 import org.expeditee.gui.DisplayIO; 20 20 import org.expeditee.gui.Frame; 21 import org.expeditee.gui.FrameGraphics;22 21 import org.expeditee.gui.FrameIO; 23 22 import org.expeditee.gui.FrameUtils; 23 import org.expeditee.gui.MessageBay; 24 24 import org.expeditee.io.Conversion; 25 25 import org.expeditee.io.Logger; … … 315 315 // check for protection on frame 316 316 if (ItemUtils.ContainsTag(source.getItems(), "@No" + mname)) { 317 FrameGraphics.DisplayMessage("Frame is protected by @No" + mname317 MessageBay.displayMessage("Frame is protected by @No" + mname 318 318 + " tag."); 319 319 return; … … 365 365 } 366 366 if (possibles.size() > 0) { 367 FrameGraphics.ErrorMessage("Incorrect parameters for " + mname);367 MessageBay.errorMessage("Incorrect parameters for " + mname); 368 368 } else { 369 369 assert (false); 370 FrameGraphics.ErrorMessage(mname + " action not found");370 MessageBay.errorMessage(mname + " action not found"); 371 371 } 372 372 } … … 431 431 // if there is no constructor, return 432 432 if (con == null) { 433 FrameGraphics.DisplayMessage(INVALID_PARAMETERS_ERROR433 MessageBay.displayMessage(INVALID_PARAMETERS_ERROR 434 434 + nameWithCorrectCase); 435 435 // System.out.println("Constructor not found..."); … … 445 445 // check for errors during initialisation 446 446 if (!_Agent.initialise(source)) { 447 FrameGraphics.ErrorMessage("Error initialising agent: "447 MessageBay.errorMessage("Error initialising agent: " 448 448 + nameWithCorrectCase); 449 449 return; … … 461 461 462 462 } catch (ClassNotFoundException cnf) { 463 FrameGraphics.ErrorMessage(nameWithCorrectCase463 MessageBay.errorMessage(nameWithCorrectCase 464 464 + "' is not an action or agent."); 465 465 } catch (Exception e) { 466 FrameGraphics.ErrorMessage("Error creating Agent: '"466 MessageBay.errorMessage("Error creating Agent: '" 467 467 + nameWithCorrectCase + "'"); 468 468 System.out.println("Agent set to Null."); … … 494 494 public static void stopAgent() { 495 495 if (_Agent != null && _Agent.isRunning()) { 496 FrameGraphics.ErrorMessage("Stopping Agent...");496 MessageBay.errorMessage("Stopping Agent..."); 497 497 _Agent.stop(); 498 498 }
Note:
See TracChangeset
for help on using the changeset viewer.