Changeset 12135 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-05-13T14:03:23+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r12133 r12135 452 452 monitor.indeterminateSubTask(tr("Loading plugins")); 453 453 PluginHandler.loadLatePlugins(splash, pluginsToLoad, monitor.createSubTaskMonitor(1, false)); 454 toolbar.refreshToolbarControl();454 GuiHelper.runInEDTAndWait(() -> toolbar.refreshToolbarControl()); 455 455 } 456 456 -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r11677 r12135 69 69 import org.openstreetmap.josm.data.imagery.ImageryLayerInfo; 70 70 import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset; 71 import org.openstreetmap.josm.gui.util.GuiHelper; 71 72 import org.openstreetmap.josm.tools.GBC; 72 73 import org.openstreetmap.josm.tools.ImageProvider; … … 995 996 */ 996 997 public ToolbarPreferences() { 997 control.setFloatable(false); 998 control.setComponentPopupMenu(popupMenu); 998 GuiHelper.runInEDTAndWait(() -> { 999 control.setFloatable(false); 1000 control.setComponentPopupMenu(popupMenu); 1001 }); 999 1002 Main.pref.addPreferenceChangeListener(e -> { 1000 1003 if ("toolbar.visible".equals(e.getKey())) { … … 1110 1113 if (toolbar == null) { 1111 1114 Main.info(tr("Registered toolbar action without name: {0}", 1112 action.getClass().getName()));1115 action.getClass().getName())); 1113 1116 } else { 1114 1117 Action r = regactions.get(toolbar); 1115 1118 if (r != null) { 1116 1119 Main.info(tr("Registered toolbar action {0} overwritten: {1} gets {2}", 1117 toolbar, r.getClass().getName(), action.getClass().getName()));1120 toolbar, r.getClass().getName(), action.getClass().getName())); 1118 1121 } 1119 1122 }
Note:
See TracChangeset
for help on using the changeset viewer.