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/markerlayer/PlayHeadMarker.java

    r8444 r8510  
    6161
    6262    private PlayHeadMarker() {
    63         super(new LatLon(0.0,0.0), "",
     63        super(new LatLon(0.0, 0.0), "",
    6464                Main.pref.get("marker.audiotracericon", "audio-tracer"),
    6565                null, -1.0, 0.0);
     
    8585    }
    8686
    87     @Override public boolean containsPoint(Point p) {
     87    @Override
     88    public boolean containsPoint(Point p) {
    8889        Point screen = Main.map.mapView.getPoint(getEastNorth());
    8990        Rectangle r = new Rectangle(screen.x, screen.y, symbol.getIconWidth(),
     
    102103        wasPlaying = AudioPlayer.playing();
    103104        if (wasPlaying) {
    104             try { AudioPlayer.pause();
    105             } catch (Exception ex) { AudioPlayer.audioMalfunction(ex);}
     105            try {
     106                AudioPlayer.pause();
     107            } catch (Exception ex) {
     108                AudioPlayer.audioMalfunction(ex);
     109            }
    106110        }
    107111    }
     
    112116    private void endDrag(boolean reset) {
    113117        if (!wasPlaying || reset) {
    114             try { AudioPlayer.pause();
    115             } catch (Exception ex) { AudioPlayer.audioMalfunction(ex);}
     118            try {
     119                AudioPlayer.pause();
     120            } catch (Exception ex) {
     121                AudioPlayer.audioMalfunction(ex);
     122            }
    116123        }
    117124        if (reset) {
     
    168175            JOptionPane.showMessageDialog(
    169176                    Main.parent,
    170                     tr("You need to drag the play head near to the GPX track whose associated sound track you were playing (after the first marker)."),
     177                    tr("You need to drag the play head near to the GPX track " +
     178                       "whose associated sound track you were playing (after the first marker)."),
    171179                    tr("Warning"),
    172180                    JOptionPane.WARNING_MESSAGE
     
    191199    public void synchronize(EastNorth en) {
    192200        AudioMarker recent = AudioMarker.recentlyPlayedMarker();
    193         if(recent == null)
     201        if (recent == null)
    194202            return;
    195203        /* First, see if we dropped onto an existing audio marker in the layer being played */
     
    234242
    235243        /* Actually do the synchronization */
    236         if(ca == null) {
     244        if (ca == null) {
    237245            JOptionPane.showMessageDialog(
    238246                    Main.parent,
     
    281289        if (timer == null) {
    282290            animationInterval = Main.pref.getDouble("marker.audioanimationinterval", 1.0); //milliseconds
    283             timer = new Timer((int)(animationInterval * 1000.0), new ActionListener() {
     291            timer = new Timer((int) (animationInterval * 1000.0), new ActionListener() {
    284292                @Override
    285293                public void actionPerformed(ActionEvent e) {
Note: See TracChangeset for help on using the changeset viewer.