Ignore:
Timestamp:
2015-06-08T02:48:18+02:00 (9 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
Files:
9 added
3 deleted
3 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/plastic_laf/.classpath

    r30749 r31244  
    44        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
    55        <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/>
    6         <classpathentry kind="lib" path="lib/jgoodies-common-1.8.0.jar"/>
    7         <classpathentry kind="lib" path="lib/jgoodies-looks-2.6.0.jar"/>
     6        <classpathentry exported="true" kind="lib" path="lib/jgoodies-common-1.9.0.jar"/>
     7        <classpathentry exported="true" kind="lib" path="lib/jgoodies-looks-2.8.0.jar"/>
    88        <classpathentry kind="output" path="bin"/>
    99</classpath>
  • applications/editors/josm/plugins/plastic_laf/.project

    r29853 r31244  
    1313        </buildSpec>
    1414        <natures>
     15                <nature>org.sonar.ide.eclipse.core.sonarNature</nature>
    1516                <nature>org.eclipse.jdt.core.javanature</nature>
    1617        </natures>
  • applications/editors/josm/plugins/plastic_laf/build.xml

    r30749 r31244  
    99         See http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
    1010    -->
    11         <property name="plugin.author" value="Imi" />
    12         <property name="plugin.class" value="plastic_laf.Plugin" />
     11        <property name="plugin.author" value="Imi, Don-vip" />
     12        <property name="plugin.class" value="org.openstreetmap.josm.plugins.plasticlaf.PlasticLafPlugin" />
    1313        <property name="plugin.description" value="The great JGoodies Plastic Look and Feel." />
    1414        <!--<property name="plugin.icon" value="" />-->
  • 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.