Ignore:
Timestamp:
2012-02-18T13:40:52+01:00 (13 years ago)
Author:
stoecker
Message:

fix shortcut deprecation

Location:
applications/editors/josm/plugins/cadastre-fr
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/build.xml

    r27788 r27852  
    3232    <property name="ant.build.javac.target" value="1.5"/>
    3333    <property name="commit.message" value="Changed constructor for Plugin"/>
    34     <property name="plugin.main.version" value="4928"/>
     34    <property name="plugin.main.version" value="4980"/>
    3535    <target name="init">
    3636        <mkdir dir="${plugin.build.dir}"/>
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/Address.java

    r27827 r27852  
    9595        super(tr("Add address"), "buildings",
    9696                tr("Helping tool for tag address"),
    97                 Shortcut.registerShortcut("mapmode:buildings", tr("Mode: {0}", tr("Buildings")), KeyEvent.VK_E, Shortcut.GROUP_DIRECT3+Shortcut.GROUPS_ALT1),
     97                Shortcut.registerShortcut("mapmode:buildings", tr("Mode: {0}", tr("Buildings")), KeyEvent.VK_E, Shortcut.ALT_CTRL_SHIFT),
    9898                mapFrame, getCursor());
    9999    }
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java

    r27484 r27852  
    1010
    1111import org.openstreetmap.josm.Main;
    12 import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
     12import org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting;
    1313import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    1414import org.openstreetmap.josm.tools.GBC;
     
    2121 * @author Pieren <pieren3@gmail.com>
    2222 */
    23 public class CadastrePreferenceSetting implements PreferenceSetting {
     23public class CadastrePreferenceSetting extends DefaultTabPreferenceSetting {
    2424
    2525    static final int TRANS_MIN = 1;
     
    9191    static final int DEFAULT_CROSSPIECES = 0;
    9292
    93     public void addGui(final PreferenceTabbedPane gui) {
    94 
    95         String description = tr("A special handler of the French cadastre wms at www.cadastre.gouv.fr" + "<BR><BR>"
     93    public CadastrePreferenceSetting() {
     94        super("cadastrewms.gif", I18n.tr("French cadastre WMS"),
     95            tr("A special handler of the French cadastre wms at www.cadastre.gouv.fr" + "<BR><BR>"
    9696                + "Please read the Terms and Conditions of Use here (in French): <br>"
    9797                + "<a href=\"http://www.cadastre.gouv.fr/scpc/html/CU_01_ConditionsGenerales_fr.html\"> "
    9898                + "http://www.cadastre.gouv.fr/scpc/html/CU_01_ConditionsGenerales_fr.html</a> <BR>"
    99                 + "before any upload of data created by this plugin.");
    100         JPanel cadastrewmsMast = gui.createPreferenceTab("cadastrewms.gif", I18n.tr("French cadastre WMS"), description);
     99                + "before any upload of data created by this plugin.")
     100        );
     101    }
     102
     103
     104    public void addGui(final PreferenceTabbedPane gui) {
     105        JPanel cadastrewmsMast = gui.createPreferenceTab(this);
    101106
    102107        JPanel cadastrewms = new JPanel(new GridBagLayout());
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrab.java

    r27788 r27852  
    2626        super(tr(name), "cadastre_small", tr("Download Image from French Cadastre WMS"),
    2727                Shortcut.registerShortcut("cadastre:grab", tr("Cadastre: {0}", tr("Download Image from French Cadastre WMS")),
    28                 KeyEvent.VK_F10, Shortcut.GROUP_DIRECT), false);
     28                KeyEvent.VK_F10, Shortcut.DIRECT), false);
    2929    }
    3030
Note: See TracChangeset for help on using the changeset viewer.