Ignore:
Timestamp:
2015-06-08T02:48:18+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plastic_laf] update to JGoodies 2.8 + fix sonar issues. Renamed package and main plugin class

Location:
applications/editors/josm/plugins/plastic_laf/src/org
Files:
5 added
1 deleted
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/plastic_laf/src/org/openstreetmap/josm/plugins/plasticlaf/PlasticLafPlugin.java

    r31227 r31244  
    1 //License: GPL
    2 package plastic_laf;
     1// License: GPL. For details, see LICENSE file.
     2package org.openstreetmap.josm.plugins.plasticlaf;
    33
    44import javax.swing.UIManager;
    55import javax.swing.UnsupportedLookAndFeelException;
    66
     7import org.openstreetmap.josm.plugins.Plugin;
    78import org.openstreetmap.josm.plugins.PluginInformation;
    89
     
    1213
    1314/**
    14  * Plugin that brings JGoodies Plastic Look and Feel to JOSM.
     15 * PlasticLafPlugin that brings JGoodies Plastic Look and Feel to JOSM.
    1516 */
    16 public class Plugin {
     17public class PlasticLafPlugin extends Plugin {
    1718
    18         /**
    19          * Constructs a new {@code Plugin}.
    20          * @param info plugin info
    21          * @throws UnsupportedLookAndFeelException if look and feel cannot be set
    22          */
    23     public Plugin(PluginInformation info) throws UnsupportedLookAndFeelException {
     19    /**
     20     * Constructs a new {@code PlasticLafPlugin}.
     21     * @param info plugin info
     22     * @throws UnsupportedLookAndFeelException if look and feel cannot be set
     23     */
     24    public PlasticLafPlugin(PluginInformation info) throws UnsupportedLookAndFeelException {
     25        super(info);
    2426        UIManager.getDefaults().put("ClassLoader", getClass().getClassLoader());
    25         UIManager.installLookAndFeel("Plastic", PlasticLookAndFeel.class.getName());
    26         UIManager.installLookAndFeel("Plastic3D", Plastic3DLookAndFeel.class.getName());
    27         UIManager.installLookAndFeel("PlasticXP", PlasticXPLookAndFeel.class.getName());
     27        UIManager.installLookAndFeel("Plastic", PlasticLookAndFeel.class.getName());
     28        UIManager.installLookAndFeel("Plastic3D", Plastic3DLookAndFeel.class.getName());
     29        UIManager.installLookAndFeel("PlasticXP", PlasticXPLookAndFeel.class.getName());
    2830    }
    2931}
Note: See TracChangeset for help on using the changeset viewer.