Ignore:
Timestamp:
09/28/18 09:30:41 (6 years ago)
Author:
bln4
Message:
 
File:
1 edited

Legend:

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

    r1141 r1170  
    160160                if(args.length > 0) {
    161161                        _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                        }
    163165                } else {
    164166                    _startFrame = "home1";
     
    269271                } else {
    270272                        // 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                                }
    272276                       
    273277                        // Go to the profile frame
     
    290294        }
    291295
     296        @Override
    292297        public void saveCompleted(SaveStateChangedEvent event)
    293298        {
     
    295300        }
    296301
     302        @Override
    297303        public void saveStarted(SaveStateChangedEvent event)
    298304        {
    299305                String name = event.getEntity().getSaveName();
    300                 if (name == null) name = "data";
     306                if (name == null) {
     307                        name = "data";
     308                }
    301309                MessageBay.displayMessage("Saving " + name + "...", Colour.BLUE);
    302310        }
     
    435443                        public void onWindowEvent(WindowEventType type)
    436444                        {
    437                                 if (type != WindowEventType.WINDOW_RESIZED) return;
     445                                if (type != WindowEventType.WINDOW_RESIZED) {
     446                                        return;
     447                                }
    438448                                DisplayController.refreshWindowSize();
    439449                                FrameIO.RefreshCacheImages();
     
    452462                        public void onWindowEvent(WindowEventType type)
    453463                        {
    454                                 if (type != WindowEventType.MOUSE_EXITED_WINDOW) return;
     464                                if (type != WindowEventType.MOUSE_EXITED_WINDOW) {
     465                                        return;
     466                                }
    455467                                StandardGestureActions.mouseExitedWindow();
    456468                        }
     
    461473                        public void onWindowEvent(WindowEventType type)
    462474                        {
    463                                 if (type != WindowEventType.MOUSE_ENTERED_WINDOW) return;
     475                                if (type != WindowEventType.MOUSE_ENTERED_WINDOW) {
     476                                        return;
     477                                }
    464478                                StandardGestureActions.mouseEnteredWindow();
    465479                        }
     
    470484                        public void onWindowEvent(WindowEventType type)
    471485                        {
    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                                }
    474492                        }
    475493                });
     
    498516                MessageBay.warningMessages(FrameUtils.ParseProfile(userProfile));
    499517               
    500                 if (cursor != null && !FreeItems.hasCursor()) FreeItems.setCursor(cursor);
     518                if (cursor != null && !FreeItems.hasCursor()) {
     519                        FreeItems.setCursor(cursor);
     520                }
    501521               
    502522                return userProfile;
Note: See TracChangeset for help on using the changeset viewer.