Changeset 17708 in josm for trunk/src/org
- Timestamp:
- 2021-04-07T21:20:47+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
r17523 r17708 69 69 private static UploadDialog uploadDialog; 70 70 71 /** list of custom components that can be added by plugins at JOSM startup */72 private static final Collection<Component> customComponents = new ArrayList<>();73 74 71 /** the "created_by" changeset OSM key */ 75 72 private static final String CREATED_BY = "created_by"; … … 131 128 pnlUploadedObjects = new UploadedObjectsSummaryPanel(); 132 129 pnl.add(pnlUploadedObjects, GBC.eol().fill(GBC.BOTH)); 133 134 // Custom components135 for (Component c : customComponents) {136 pnl.add(c, GBC.eol().fill(GBC.HORIZONTAL));137 }138 130 139 131 // a tabbed pane with configuration panels in the lower half … … 437 429 } 438 430 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 call444 * @since 5842445 */446 public static boolean addCustomComponent(Component c) {447 if (c != null) {448 return customComponents.add(c);449 }450 return false;451 }452 453 431 static final class CompactTabbedPane extends JTabbedPane { 454 432 @Override
Note:
See TracChangeset
for help on using the changeset viewer.