Ignore:
Timestamp:
2017-06-02T15:31:39+02:00 (7 years ago)
Author:
michael2402
Message:

Javadoc for the changeset dialogs.

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  
    559559    }
    560560
     561    /**
     562     * Add a separator to the popup menu
     563     */
    561564    public void addPopupMenuSeparator() {
    562565        popupMenu.addSeparator();
    563566    }
    564567
     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     */
    565573    public JMenuItem addPopupMenuAction(Action a) {
    566574        return popupMenu.add(a);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManagerModel.java

    r11365 r12297  
    2222/**
    2323 * This is the model for the changeset cache manager dialog.
    24  *
    2524 */
    2625public class ChangesetCacheManagerModel extends AbstractTableModel implements ChangesetCacheListener {
     
    3433    private final PropertyChangeSupport support = new PropertyChangeSupport(this);
    3534
     35    /**
     36     * Creates a new ChangesetCacheManagerModel that is based on the selectionModel
     37     * @param selectionModel A new selection model that should be used.
     38     */
    3639    public ChangesetCacheManagerModel(DefaultListSelectionModel selectionModel) {
    3740        this.selectionModel = selectionModel;
    3841    }
    3942
     43    /**
     44     * Adds a property change listener to this model.
     45     * @param listener The listener
     46     */
    4047    public void addPropertyChangeListener(PropertyChangeListener listener) {
    4148        support.addPropertyChangeListener(listener);
    4249    }
    4350
     51    /**
     52     * Removes a property change listener from this model.
     53     * @param listener The listener
     54     */
    4455    public void removePropertyChangeListener(PropertyChangeListener listener) {
    4556        support.removePropertyChangeListener(listener);
     
    132143    }
    133144
     145    /**
     146     * Initializes the data that is displayed using the changeset cache.
     147     */
    134148    public void init() {
    135149        ChangesetCache cc = ChangesetCache.getInstance();
     
    144158    }
    145159
     160    /**
     161     * Destroys and unregisters this model.
     162     */
    146163    public void tearDown() {
    147164        ChangesetCache.getInstance().removeChangesetCacheListener(this);
    148165    }
    149166
     167    /**
     168     * Gets the selection model this table is based on.
     169     * @return The selection model.
     170     */
    150171    public DefaultListSelectionModel getSelectionModel() {
    151172        return selectionModel;
Note: See TracChangeset for help on using the changeset viewer.