Ignore:
Timestamp:
2016-07-04T14:18:17+02:00 (9 years ago)
Author:
donvip
Message:

checkstyle

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 others
     1// License: GPL. For details, see LICENSE file.
    22package cadastre_fr;
    33
     
    1111import org.openstreetmap.josm.gui.preferences.PreferenceDialog;
    1212
    13 public class MenuActionOpenPreferences extends JosmAction { 
    14     private static final long serialVersionUID = 1L; 
     13public class MenuActionOpenPreferences extends JosmAction {
     14    private static final long serialVersionUID = 1L;
    1515
    16     public static String name = marktr("Preferences"); 
     16    public static String name = marktr("Preferences");
    1717
    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    }
    2728}
Note: See TracChangeset for help on using the changeset viewer.