Changeset 18361 in josm
- Timestamp:
- 2022-01-09T12:11:27+01:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r18322 r18361 1223 1223 monitor.indeterminateSubTask(tr("Loading plugins")); 1224 1224 PluginHandler.loadLatePlugins(splash, pluginsToLoad, monitor.createSubTaskMonitor(1, false)); 1225 GuiHelper.runInEDTAndWait(() -> toolbar.refreshToolbarControl()); 1225 GuiHelper.runInEDTAndWait(() -> { 1226 toolbar.enableInfoAboutMissingAction(); 1227 toolbar.refreshToolbarControl(); 1228 }); 1226 1229 } 1227 1230 -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r18342 r18361 583 583 public final JToolBar control = new JToolBar(); 584 584 private final Map<Object, ActionDefinition> buttonActions = new ConcurrentHashMap<>(30); 585 private boolean showInfoAboutMissingActions; 585 586 586 587 @Override … … 1113 1114 if (a != null) { 1114 1115 result.add(a); 1115 } else {1116 } else if (showInfoAboutMissingActions) { 1116 1117 Logging.info("Could not load tool definition "+s); 1117 1118 } … … 1293 1294 refreshToolbarControl(); 1294 1295 } 1296 1297 /** 1298 * Call with {@code true} when all plugins were loaded. 1299 * @since xxx 1300 */ 1301 public void enableInfoAboutMissingAction() { 1302 this.showInfoAboutMissingActions = true; 1303 } 1304 1305 1295 1306 }
Note:
See TracChangeset
for help on using the changeset viewer.