Ticket #18912: 18912.1.patch

File 18912.1.patch, 792 bytes (added by taylor.smock, 6 years ago)

Add method to clear button actions. Requires plugin support.

  • src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

     
    975975        return data;
    976976    }
    977977
     978    /**
     979     * Clear button actions. Should be used when recreating the layout with sidebuttons, and the previous sidebuttons are no longer desired.
     980     * @since xxx
     981     */
     982    public void clearButtonActions() {
     983        buttonActions.clear();
     984    }
     985
    978986    @Override
    979987    public void eventDispatched(AWTEvent event) {
    980988        if (event instanceof MouseEvent && isShowing() && !isCollapsed && isDocked && buttonHiding == ButtonHidingType.DYNAMIC