Custom presets can be shown in the toolbar by toolbar preferences.
However these icons are grayed out and disabled. They should be available when the first data layer is loaded.
(Normal presets are grayed out at startup of JOSM and turn enabled after the first layer is downloaded.)
Custom presets become available if the code below is called at the right time, but I am struggling to find out which timing is appropriate.
Custom presets can be shown in the toolbar by toolbar preferences. However these icons are grayed out and disabled. They should be available when the first data layer is loaded. (Normal presets are grayed out at startup of JOSM and turn enabled after the first layer is downloaded.)
Custom presets become available if the code below is called at the right time, but I am struggling to find out which timing is appropriate.
MainApplication.getToolbar().refreshToolbarControl();
Can someone help me?