Last change
on this file since 16495 was 16495, checked in by GerdP, 5 years ago |
see #19257: reduce number of ShowHistoryAction implementations
Add AbstractShowHistoryAction with common texts "History" and "Download and show the history of the selected objects" to reduce number of I18N strings. To be used with popup menus and side buttons where selected objects are known.
|
File size:
761 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.actions;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import javax.swing.AbstractAction;
|
---|
7 |
|
---|
8 | import org.openstreetmap.josm.tools.ImageProvider;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * Superclass of "History" actions in various parts of JOSM.
|
---|
12 | * @since xxx
|
---|
13 | */
|
---|
14 | public abstract class AbstractShowHistoryAction extends AbstractAction {
|
---|
15 | /**
|
---|
16 | * Constructs a new {@code AbstractShowHistoryAction}.
|
---|
17 | */
|
---|
18 | public AbstractShowHistoryAction() {
|
---|
19 | putValue(NAME, tr("History"));
|
---|
20 | putValue(SHORT_DESCRIPTION, tr("Download and show the history of the selected objects"));
|
---|
21 | new ImageProvider("dialogs", "history").getResource().attachImageIcon(this, true);
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.