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

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

checkstyle

File size: 972 bytes
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
[32556]16 public static String name = marktr("Preferences");
[29194]17
[32556]18 public MenuActionOpenPreferences() {
19 super(tr(name), "cadastre_small", tr("Open Cadastre Preferences"), null, false, "cadastrefr/openpreferences", true);
20 }
21
22 @Override
23 public void actionPerformed(ActionEvent e) {
24 PreferenceDialog p = new PreferenceDialog(Main.parent);
25 p.selectPreferencesTabByClass(CadastrePreferenceSetting.class);
26 p.setVisible(true);
27 }
28}
Note: See TracBrowser for help on using the repository browser.