- Timestamp:
- 2014-02-17T01:13:18+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/display/LafPreference.java
r6764 r6857 16 16 import javax.swing.JScrollPane; 17 17 import javax.swing.ListCellRenderer; 18 import javax.swing.LookAndFeel; 18 19 import javax.swing.UIManager; 19 20 import javax.swing.UIManager.LookAndFeelInfo; … … 29 30 import org.openstreetmap.josm.gui.widgets.JosmComboBox; 30 31 import org.openstreetmap.josm.tools.GBC; 32 import org.openstreetmap.josm.tools.PlatformHookOsx; 31 33 32 34 /** … … 61 63 62 64 // let's try to load additional LookAndFeels and put them into the list 63 try { 64 Class<?> Cquaqua = Class.forName("ch.randelshofer.quaqua.QuaquaLookAndFeel"); 65 Object Oquaqua = Cquaqua.getConstructor((Class[])null).newInstance((Object[])null); 66 // no exception? Then Go! 67 lafCombo.addItem( 68 new UIManager.LookAndFeelInfo(((javax.swing.LookAndFeel)Oquaqua).getName(), "ch.randelshofer.quaqua.QuaquaLookAndFeel") 69 ); 70 } catch (Exception ex) { 71 // just debug, Quaqua may not even be installed... 72 Main.debug(ex.getMessage()); 65 if (Main.platform instanceof PlatformHookOsx) { 66 try { 67 Class<?> Cquaqua = Class.forName("ch.randelshofer.quaqua.QuaquaLookAndFeel"); 68 Object Oquaqua = Cquaqua.getConstructor((Class[])null).newInstance((Object[])null); 69 // no exception? Then Go! 70 lafCombo.addItem( 71 new UIManager.LookAndFeelInfo(((LookAndFeel)Oquaqua).getName(), "ch.randelshofer.quaqua.QuaquaLookAndFeel") 72 ); 73 } catch (Exception ex) { 74 // just debug, Quaqua may not even be installed... 75 Main.debug(ex.getMessage()); 76 } 73 77 } 74 78
Note:
See TracChangeset
for help on using the changeset viewer.