source: osm/applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionOpenPreferences.java@ 33047

Last change on this file since 33047 was 33047, checked in by donvip, 8 years ago

findbugs

File size: 1.0 KB
RevLine 
[32556]1// License: GPL. For details, see LICENSE file.
[29194]2package cadastre_fr;
3
4import static org.openstreetmap.josm.tools.I18n.marktr;
5import static org.openstreetmap.josm.tools.I18n.tr;
6
7import java.awt.event.ActionEvent;
8
9import org.openstreetmap.josm.Main;
10import org.openstreetmap.josm.actions.JosmAction;
11import org.openstreetmap.josm.gui.preferences.PreferenceDialog;
12
[32556]13public class MenuActionOpenPreferences extends JosmAction {
14 private static final long serialVersionUID = 1L;
[29194]15
[33047]16 public static final String NAME = marktr("Preferences");
[29194]17
[33047]18 /**
19 * Constructs a new {@code MenuActionOpenPreferences}.
20 */
[32556]21 public MenuActionOpenPreferences() {
[33047]22 super(tr(NAME), "cadastre_small", tr("Open Cadastre Preferences"), null, false, "cadastrefr/openpreferences", true);
[32556]23 }
24
25 @Override
26 public void actionPerformed(ActionEvent e) {
27 PreferenceDialog p = new PreferenceDialog(Main.parent);
28 p.selectPreferencesTabByClass(CadastrePreferenceSetting.class);
29 p.setVisible(true);
30 }
31}
Note: See TracBrowser for help on using the repository browser.