Changeset 12297 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-06-02T15:31:39+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java
r12279 r12297 559 559 } 560 560 561 /** 562 * Add a separator to the popup menu 563 */ 561 564 public void addPopupMenuSeparator() { 562 565 popupMenu.addSeparator(); 563 566 } 564 567 568 /** 569 * Add a menu item to the popup menu 570 * @param a The action to add 571 * @return The menu item that was added. 572 */ 565 573 public JMenuItem addPopupMenuAction(Action a) { 566 574 return popupMenu.add(a); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManagerModel.java
r11365 r12297 22 22 /** 23 23 * This is the model for the changeset cache manager dialog. 24 *25 24 */ 26 25 public class ChangesetCacheManagerModel extends AbstractTableModel implements ChangesetCacheListener { … … 34 33 private final PropertyChangeSupport support = new PropertyChangeSupport(this); 35 34 35 /** 36 * Creates a new ChangesetCacheManagerModel that is based on the selectionModel 37 * @param selectionModel A new selection model that should be used. 38 */ 36 39 public ChangesetCacheManagerModel(DefaultListSelectionModel selectionModel) { 37 40 this.selectionModel = selectionModel; 38 41 } 39 42 43 /** 44 * Adds a property change listener to this model. 45 * @param listener The listener 46 */ 40 47 public void addPropertyChangeListener(PropertyChangeListener listener) { 41 48 support.addPropertyChangeListener(listener); 42 49 } 43 50 51 /** 52 * Removes a property change listener from this model. 53 * @param listener The listener 54 */ 44 55 public void removePropertyChangeListener(PropertyChangeListener listener) { 45 56 support.removePropertyChangeListener(listener); … … 132 143 } 133 144 145 /** 146 * Initializes the data that is displayed using the changeset cache. 147 */ 134 148 public void init() { 135 149 ChangesetCache cc = ChangesetCache.getInstance(); … … 144 158 } 145 159 160 /** 161 * Destroys and unregisters this model. 162 */ 146 163 public void tearDown() { 147 164 ChangesetCache.getInstance().removeChangesetCacheListener(this); 148 165 } 149 166 167 /** 168 * Gets the selection model this table is based on. 169 * @return The selection model. 170 */ 150 171 public DefaultListSelectionModel getSelectionModel() { 151 172 return selectionModel;
Note:
See TracChangeset
for help on using the changeset viewer.