Changeset 32556 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionOpenPreferences.java
- Timestamp:
- 2016-07-04T14:18:17+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionOpenPreferences.java
r29194 r32556 1 // License: GPL. v2 and later. Copyright 2008-2009 by Vincent Privat <vincent.privat@gmail.com> and others1 // License: GPL. For details, see LICENSE file. 2 2 package cadastre_fr; 3 3 … … 11 11 import org.openstreetmap.josm.gui.preferences.PreferenceDialog; 12 12 13 public class MenuActionOpenPreferences extends JosmAction { 14 private static final long serialVersionUID = 1L; 13 public class MenuActionOpenPreferences extends JosmAction { 14 private static final long serialVersionUID = 1L; 15 15 16 public static String name = marktr("Preferences"); 16 public static String name = marktr("Preferences"); 17 17 18 public MenuActionOpenPreferences() { 19 super(tr(name), "cadastre_small", tr("Open Cadastre Preferences"), null, false, "cadastrefr/openpreferences", true); 20 } 21 22 public void actionPerformed(ActionEvent e) { 23 PreferenceDialog p = new PreferenceDialog(Main.parent); 24 p.selectPreferencesTabByClass(CadastrePreferenceSetting.class); 25 p.setVisible(true); 26 } 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 } 27 28 }
Note:
See TracChangeset
for help on using the changeset viewer.
