Ignore:
Timestamp:
2017-03-10T02:28:00+01:00 (7 years ago)
Author:
Don-vip
Message:

add Ant target to run PMD (only few rules for now), fix violations

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1212junit*.properties
        1313foobar
         14pmd-josm.xml
  • trunk/src/org/openstreetmap/josm/Main.java

    r11656 r11713  
    8282import org.openstreetmap.josm.gui.layer.TMSLayer;
    8383import org.openstreetmap.josm.gui.preferences.ToolbarPreferences;
     84import org.openstreetmap.josm.gui.preferences.display.LafPreference;
    8485import org.openstreetmap.josm.gui.preferences.imagery.ImageryPreference;
    8586import org.openstreetmap.josm.gui.preferences.map.MapPaintPreference;
     
    765766
    766767        String defaultlaf = platform.getDefaultStyle();
    767         String laf = Main.pref.get("laf", defaultlaf);
     768        String laf = LafPreference.LAF.get();
    768769        try {
    769770            UIManager.setLookAndFeel(laf);
     
    787788                } catch (UnsupportedLookAndFeelException ex) {
    788789                    info("Look and Feel not supported: " + laf);
    789                     Main.pref.put("laf", defaultlaf);
     790                    LafPreference.LAF.put(defaultlaf);
    790791                    trace(ex);
    791792                }
    792793            } else {
    793794                info("Look and Feel not found: " + laf);
    794                 Main.pref.put("laf", defaultlaf);
     795                LafPreference.LAF.put(defaultlaf);
    795796            }
    796797        } catch (UnsupportedLookAndFeelException e) {
    797798            info("Look and Feel not supported: " + laf);
    798             Main.pref.put("laf", defaultlaf);
     799            LafPreference.LAF.put(defaultlaf);
    799800            trace(e);
    800801        } catch (InstantiationException | IllegalAccessException e) {
Note: See TracChangeset for help on using the changeset viewer.