Ignore:
Timestamp:
2006-10-13T21:50:23+02:00 (18 years ago)
Author:
imi
Message:

added josm translation plugins and annotation-tester plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/josm/plugins/plastic_laf/src/plastic_laf/Plugin.java

    r1439 r1467  
    11package plastic_laf;
    22
    3 import javax.swing.SwingUtilities;
    43import javax.swing.UIManager;
    5 
    6 import org.openstreetmap.josm.Main;
    7 import org.openstreetmap.josm.actions.DownloadAction.DownloadTask;
     4import javax.swing.UnsupportedLookAndFeelException;
    85
    96import com.jgoodies.looks.plastic.PlasticLookAndFeel;
    107
    118public class Plugin {
    12 
    13         public Plugin() {
    14                 try {
    15                         UIManager.getDefaults().put("ClassLoader", getClass().getClassLoader());
    16                         UIManager.setLookAndFeel(new PlasticLookAndFeel());
    17 
    18                         SwingUtilities.updateComponentTreeUI(Main.parent);
    19                         SwingUtilities.updateComponentTreeUI(Main.pleaseWaitDlg);
    20                         for (DownloadTask task : Main.main.downloadAction.downloadTasks)
    21                                 SwingUtilities.updateComponentTreeUI(task.getCheckBox());
    22                 } catch (Exception e) {
    23                         if (e instanceof RuntimeException)
    24                                 throw (RuntimeException)e;
    25                         throw new RuntimeException(e);
    26                 }
     9        public Plugin() throws UnsupportedLookAndFeelException {
     10                UIManager.getDefaults().put("ClassLoader", getClass().getClassLoader());
     11                UIManager.setLookAndFeel(new PlasticLookAndFeel());
    2712        }
    2813}
Note: See TracChangeset for help on using the changeset viewer.