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/gui/layer/geoimage/ImageViewerDialog.java

    r8509 r8510  
    8484        content.add(imgDisplay, BorderLayout.CENTER);
    8585
    86         Dimension buttonDim = new Dimension(26,26);
     86        Dimension buttonDim = new Dimension(26, 26);
    8787
    8888        ImageAction prevAction = new ImageAction(COMMAND_PREVIOUS, ImageProvider.get("dialogs", "previous"), tr("Previous"));
     
    160160        btnCollapse = new JButton(new ImageAction(COMMAND_COLLAPSE,
    161161                ImageProvider.get("dialogs", "collapse"), tr("Move dialog to the side pane")));
    162         btnCollapse.setPreferredSize(new Dimension(20,20));
     162        btnCollapse.setPreferredSize(new Dimension(20, 20));
    163163        btnCollapse.setAlignmentY(Component.TOP_ALIGNMENT);
    164164
     
    203203    class ImageAction extends AbstractAction {
    204204        private final String action;
     205
    205206        public ImageAction(String action, ImageIcon icon, String toolTipText) {
    206207            this.action = action;
     
    223224            } else if (COMMAND_LAST.equals(action) && currentLayer != null) {
    224225                currentLayer.showLastPhoto();
    225 
    226226            } else if (COMMAND_CENTERVIEW.equals(action)) {
    227227                centerView = ((JToggleButton) e.getSource()).isSelected();
     
    229229                    Main.map.mapView.zoomTo(currentEntry.getPos());
    230230                }
    231 
    232231            } else if (COMMAND_ZOOM.equals(action)) {
    233232                imgDisplay.zoomBestFitOrOne();
    234 
    235233            } else if (COMMAND_REMOVE.equals(action)) {
    236234                if (currentLayer != null) {
     
    284282        boolean imageChanged;
    285283
    286         synchronized(this) {
     284        synchronized (this) {
    287285            // TODO: pop up image dialog but don't load image again
    288286
     
    392390    public void activeLayerChange(Layer oldLayer, Layer newLayer) {
    393391        if (currentLayer == null && newLayer instanceof GeoImageLayer) {
    394             ((GeoImageLayer)newLayer).showFirstPhoto();
     392            ((GeoImageLayer) newLayer).showFirstPhoto();
    395393        }
    396394    }
     
    399397    public void layerAdded(Layer newLayer) {
    400398        if (currentLayer == null && newLayer instanceof GeoImageLayer) {
    401             ((GeoImageLayer)newLayer).showFirstPhoto();
     399            ((GeoImageLayer) newLayer).showFirstPhoto();
    402400        }
    403401    }
Note: See TracChangeset for help on using the changeset viewer.