- Timestamp:
- 09/28/18 09:30:41 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/Browser.java
r1141 r1170 160 160 if(args.length > 0) { 161 161 _startFrame = args[0]; 162 if(!Character.isDigit(_startFrame.charAt(_startFrame.length() - 1))) _startFrame = _startFrame + "1"; 162 if(!Character.isDigit(_startFrame.charAt(_startFrame.length() - 1))) { 163 _startFrame = _startFrame + "1"; 164 } 163 165 } else { 164 166 _startFrame = "home1"; … … 269 271 } else { 270 272 // If an invalid start frame was specified, show a warning 271 if(_startFrame != null) MessageBay.warningMessage("Unknown frame: " + _startFrame); 273 if(_startFrame != null) { 274 MessageBay.warningMessage("Unknown frame: " + _startFrame); 275 } 272 276 273 277 // Go to the profile frame … … 290 294 } 291 295 296 @Override 292 297 public void saveCompleted(SaveStateChangedEvent event) 293 298 { … … 295 300 } 296 301 302 @Override 297 303 public void saveStarted(SaveStateChangedEvent event) 298 304 { 299 305 String name = event.getEntity().getSaveName(); 300 if (name == null) name = "data"; 306 if (name == null) { 307 name = "data"; 308 } 301 309 MessageBay.displayMessage("Saving " + name + "...", Colour.BLUE); 302 310 } … … 435 443 public void onWindowEvent(WindowEventType type) 436 444 { 437 if (type != WindowEventType.WINDOW_RESIZED) return; 445 if (type != WindowEventType.WINDOW_RESIZED) { 446 return; 447 } 438 448 DisplayController.refreshWindowSize(); 439 449 FrameIO.RefreshCacheImages(); … … 452 462 public void onWindowEvent(WindowEventType type) 453 463 { 454 if (type != WindowEventType.MOUSE_EXITED_WINDOW) return; 464 if (type != WindowEventType.MOUSE_EXITED_WINDOW) { 465 return; 466 } 455 467 StandardGestureActions.mouseExitedWindow(); 456 468 } … … 461 473 public void onWindowEvent(WindowEventType type) 462 474 { 463 if (type != WindowEventType.MOUSE_ENTERED_WINDOW) return; 475 if (type != WindowEventType.MOUSE_ENTERED_WINDOW) { 476 return; 477 } 464 478 StandardGestureActions.mouseEnteredWindow(); 465 479 } … … 470 484 public void onWindowEvent(WindowEventType type) 471 485 { 472 if (type != WindowEventType.WINDOW_CLOSED) return; 473 if (Browser._theBrowser != null) Browser._theBrowser.exit(); 486 if (type != WindowEventType.WINDOW_CLOSED) { 487 return; 488 } 489 if (Browser._theBrowser != null) { 490 Browser._theBrowser.exit(); 491 } 474 492 } 475 493 }); … … 498 516 MessageBay.warningMessages(FrameUtils.ParseProfile(userProfile)); 499 517 500 if (cursor != null && !FreeItems.hasCursor()) FreeItems.setCursor(cursor); 518 if (cursor != null && !FreeItems.hasCursor()) { 519 FreeItems.setCursor(cursor); 520 } 501 521 502 522 return userProfile;
Note:
See TracChangeset
for help on using the changeset viewer.