Changeset 31244 in osm for applications/editors/josm/plugins/plastic_laf/src
- Timestamp:
- 2015-06-08T02:48:18+02:00 (10 years ago)
- 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. 2 package org.openstreetmap.josm.plugins.plasticlaf; 3 3 4 4 import javax.swing.UIManager; 5 5 import javax.swing.UnsupportedLookAndFeelException; 6 6 7 import org.openstreetmap.josm.plugins.Plugin; 7 8 import org.openstreetmap.josm.plugins.PluginInformation; 8 9 … … 12 13 13 14 /** 14 * Plugin that brings JGoodies Plastic Look and Feel to JOSM. 15 * PlasticLafPlugin that brings JGoodies Plastic Look and Feel to JOSM. 15 16 */ 16 public class Plugin { 17 public class PlasticLafPlugin extends Plugin { 17 18 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); 24 26 UIManager.getDefaults().put("ClassLoader", getClass().getClassLoader()); 25 26 27 27 UIManager.installLookAndFeel("Plastic", PlasticLookAndFeel.class.getName()); 28 UIManager.installLookAndFeel("Plastic3D", Plastic3DLookAndFeel.class.getName()); 29 UIManager.installLookAndFeel("PlasticXP", PlasticXPLookAndFeel.class.getName()); 28 30 } 29 31 }
Note:
See TracChangeset
for help on using the changeset viewer.