Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java

    r8443 r8510  
    119119            return;
    120120        }
    121         KeyEvent kev = (KeyEvent)event;
     121        KeyEvent kev = (KeyEvent) event;
    122122        int dx = 0, dy = 0;
    123123        switch (kev.getKeyCode()) {
     
    148148        if (layer.isVisible()) {
    149149            requestFocusInMapView();
    150             prevEastNorth=Main.map.mapView.getEastNorth(e.getX(),e.getY());
     150            prevEastNorth = Main.map.mapView.getEastNorth(e.getX(), e.getY());
    151151            Main.map.mapView.setNewCursor(Cursor.MOVE_CURSOR, this);
    152152        }
     
    157157        if (layer == null || prevEastNorth == null) return;
    158158        EastNorth eastNorth =
    159             Main.map.mapView.getEastNorth(e.getX(),e.getY());
     159            Main.map.mapView.getEastNorth(e.getX(), e.getY());
    160160        double dx = layer.getDx()+eastNorth.east()-prevEastNorth.east();
    161161        double dy = layer.getDy()+eastNorth.north()-prevEastNorth.north();
     
    194194            super(Main.parent,
    195195                    tr("Adjust imagery offset"),
    196                     new String[] {tr("OK"),tr("Cancel")},
     196                    new String[] {tr("OK"), tr("Cancel")},
    197197                    false);
    198198            setButtonIcons(new String[] {"ok", "cancel"});
     
    203203                    "If you want to save the offset as bookmark, enter the bookmark name below",
    204204                    Main.getProjection().toString())), GBC.eop());
    205             pnl.add(new JLabel(tr("Offset: ")),GBC.std());
    206             pnl.add(tOffset,GBC.eol().fill(GBC.HORIZONTAL).insets(0,0,0,5));
    207             pnl.add(new JLabel(tr("Bookmark name: ")),GBC.std());
    208             pnl.add(tBookmarkName,GBC.eol().fill(GBC.HORIZONTAL));
     205            pnl.add(new JLabel(tr("Offset: ")), GBC.std());
     206            pnl.add(tOffset, GBC.eol().fill(GBC.HORIZONTAL).insets(0, 0, 0, 5));
     207            pnl.add(new JLabel(tr("Bookmark name: ")), GBC.std());
     208            pnl.add(tBookmarkName, GBC.eol().fill(GBC.HORIZONTAL));
    209209            tOffset.setColumns(16);
    210210            updateOffsetIntl();
     
    269269                    tr("Overwrite"),
    270270                    new String[] {tr("Overwrite"), tr("Cancel")}
    271             ) {{
     271            ) { {
    272272                contentInsets = new Insets(10, 15, 10, 15);
    273             }};
     273            } };
    274274            dialog.setContent(tr("Offset bookmark already exists. Overwrite?"));
    275275            dialog.setButtonIcons(new String[] {"ok.png", "cancel.png"});
Note: See TracChangeset for help on using the changeset viewer.