Last change
on this file since 17371 was 12373, checked in by michael2402, 7 years ago |
Fix listener leak in ChangesetDialog and migrate ChangesetInSelectionListModel to new dataset listeners.
|
-
Property svn:eol-style
set to
native
|
File size:
1.0 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.dialogs.changeset;
|
---|
3 |
|
---|
4 | import javax.swing.DefaultListSelectionModel;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.data.osm.DataSelectionListener;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * A table of changesets that displays the ones that are used by the primitives in the current selection.
|
---|
10 | */
|
---|
11 | public class ChangesetInSelectionListModel extends ChangesetListModel implements DataSelectionListener {
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Create a new {@link ChangesetInSelectionListModel}
|
---|
15 | * @param selectionModel The model
|
---|
16 | */
|
---|
17 | public ChangesetInSelectionListModel(DefaultListSelectionModel selectionModel) {
|
---|
18 | super(selectionModel);
|
---|
19 | }
|
---|
20 |
|
---|
21 | /* ---------------------------------------------------------------------------- */
|
---|
22 | /* Interface DataSelectionListener */
|
---|
23 | /* ---------------------------------------------------------------------------- */
|
---|
24 |
|
---|
25 | @Override
|
---|
26 | public void selectionChanged(SelectionChangeEvent event) {
|
---|
27 | initFromPrimitives(event.getSelection());
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.