Changeset 17708 in josm for trunk/src/org


Ignore:
Timestamp:
2021-04-07T21:20:47+02:00 (3 years ago)
Author:
simon04
Message:

see #20708 - Remove unused upload dialog customization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r17523 r17708  
    6969    private static UploadDialog uploadDialog;
    7070
    71     /** list of custom components that can be added by plugins at JOSM startup */
    72     private static final Collection<Component> customComponents = new ArrayList<>();
    73 
    7471    /** the "created_by" changeset OSM key */
    7572    private static final String CREATED_BY = "created_by";
     
    131128        pnlUploadedObjects = new UploadedObjectsSummaryPanel();
    132129        pnl.add(pnlUploadedObjects, GBC.eol().fill(GBC.BOTH));
    133 
    134         // Custom components
    135         for (Component c : customComponents) {
    136             pnl.add(c, GBC.eol().fill(GBC.HORIZONTAL));
    137         }
    138130
    139131        // a tabbed pane with configuration panels in the lower half
     
    437429    }
    438430
    439     /**
    440      * Adds a custom component to this dialog.
    441      * Custom components added at JOSM startup are displayed between the objects list and the properties tab pane.
    442      * @param c The custom component to add. If {@code null}, this method does nothing.
    443      * @return {@code true} if the collection of custom components changed as a result of the call
    444      * @since 5842
    445      */
    446     public static boolean addCustomComponent(Component c) {
    447         if (c != null) {
    448             return customComponents.add(c);
    449         }
    450         return false;
    451     }
    452 
    453431    static final class CompactTabbedPane extends JTabbedPane {
    454432        @Override
Note: See TracChangeset for help on using the changeset viewer.