Last change
on this file since 14695 was 14390, checked in by simon04, 6 years ago |
fix #15918 - Confusing English texts (thanks to Hb---)
|
-
Property svn:eol-style
set to
native
|
File size:
1.2 KB
|
Rev | Line | |
---|
[3388] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
[12834] | 2 | package org.openstreetmap.josm.actions;
|
---|
[3388] | 3 |
|
---|
| 4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
| 5 |
|
---|
| 6 | import java.awt.event.ActionEvent;
|
---|
| 7 | import java.awt.event.KeyEvent;
|
---|
| 8 |
|
---|
[12636] | 9 | import org.openstreetmap.josm.gui.MainApplication;
|
---|
[12834] | 10 | import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetSearchDialog;
|
---|
[3388] | 11 | import org.openstreetmap.josm.tools.Shortcut;
|
---|
| 12 |
|
---|
[6074] | 13 | /**
|
---|
| 14 | * The tagging presets search action (F3).
|
---|
| 15 | * @since 3388
|
---|
[12834] | 16 | * @since 12834 (moved from {@code gui.tagging.presets} package)
|
---|
[6074] | 17 | */
|
---|
[3388] | 18 | public class TaggingPresetSearchAction extends JosmAction {
|
---|
| 19 |
|
---|
[6074] | 20 | /**
|
---|
| 21 | * Constructs a new {@code TaggingPresetSearchAction}.
|
---|
| 22 | */
|
---|
[3388] | 23 | public TaggingPresetSearchAction() {
|
---|
[14390] | 24 | super(tr("Search preset..."), "dialogs/search", tr("Show preset search dialog"),
|
---|
[4982] | 25 | Shortcut.registerShortcut("preset:search", tr("Search presets"), KeyEvent.VK_F3, Shortcut.DIRECT), false);
|
---|
[3546] | 26 | putValue("toolbar", "presets/search");
|
---|
[12637] | 27 | MainApplication.getToolbar().register(this);
|
---|
[3388] | 28 | }
|
---|
| 29 |
|
---|
| 30 | @Override
|
---|
| 31 | public void actionPerformed(ActionEvent e) {
|
---|
| 32 |
|
---|
[13926] | 33 | if (MainApplication.getLayerManager().getActiveData() == null)
|
---|
[3388] | 34 | return;
|
---|
| 35 |
|
---|
[6074] | 36 | TaggingPresetSearchDialog.getInstance().showDialog();
|
---|
[3388] | 37 | }
|
---|
| 38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.