Ignore:
Timestamp:
2008-12-02T17:21:16+01:00 (16 years ago)
Author:
stoecker
Message:

fixed some warnings, added new shortcur handling

Location:
applications/editors/josm/plugins/wmsplugin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/build.xml

    r10382 r12187  
    2828    <echo message="creating ${plugin.jar}"/>
    2929    <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
     30      <compilerarg value="-Xlint:deprecation"/>
     31      <compilerarg value="-Xlint:unchecked"/>
    3032      <include name="**/*.java" />
    3133    </javac>
     
    5052    <jar destfile="${plugin.jar}" basedir="build">
    5153      <manifest>
    52         <attribute name="Plugin-Class" value="wmsplugin.WMSPlugin" />
    53     <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    54     <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    55         <attribute name="Plugin-Description" value="Allows external WMS resources to be displayed." />
     54        <attribute name="Plugin-Class" value="wmsplugin.WMSPlugin" />
     55        <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     56        <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     57        <attribute name="Plugin-Description" value="Allows external WMS resources to be displayed." />
     58        <attribute name="Plugin-Mainversion" value="1065" />
    5659      </manifest>
    5760    </jar>
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/Help_WMSmenuAction.java

    r10058 r12187  
    1818        public Help_WMSmenuAction() {
    1919                //super("Help / About");
    20                 super(tr("help"), "help", tr("Help / About"), 0, 0, false);
     20                super(tr("help"), "help", tr("Help / About"), null, false);
    2121               
    2222        }
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/Map_Rectifier_WMSmenuAction.java

    r10704 r12187  
    1818
    1919        public Map_Rectifier_WMSmenuAction() {
    20                 super(tr("Rectified Image ..."), "OLmarker", tr("Download Rectified Image from Metacarta's Map Rectifer WMS"), 0, 0, false);
     20                super(tr("Rectified Image ..."), "OLmarker", tr("Download Rectified Image from Metacarta's Map Rectifer WMS"), null, false);
    2121        }
    2222
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSDownloadAction.java

    r10704 r12187  
    1616       
    1717        public WMSDownloadAction(WMSInfo info) {
    18                 super(info.name, "wmsmenu", tr("Download WMS tile from {0}",info.name), 0, 0, false);
     18                super(info.name, "wmsmenu", tr("Download WMS tile from {0}",info.name), null, false);
    1919                this.info = info;
    2020        }
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java

    r11242 r12187  
    1919import org.openstreetmap.josm.Main;
    2020import org.openstreetmap.josm.plugins.Plugin;
     21import org.openstreetmap.josm.gui.MainMenu;
    2122import org.openstreetmap.josm.gui.MapFrame;
    2223import org.openstreetmap.josm.gui.IconToggleButton;
     
    109110
    110111                Collections.sort(wmsList);
    111                 JMenuBar menu = Main.main.menu;
     112                MainMenu menu = Main.main.menu;
    112113
    113114                if (wmsJMenu == null) {
    114115                        wmsJMenu = new JMenu(tr("WMS"));
    115                         wmsJMenu.setMnemonic(KeyEvent.VK_W);
     116                        menu.add(wmsJMenu, KeyEvent.VK_W, "wms");
    116117                        menu.add(wmsJMenu, 5);
    117118                } else {
     
    128129                wmsJMenu.addSeparator();
    129130                wmsJMenu.add(new JMenuItem(new
    130                                 JosmAction(tr("Blank Layer"), "blankmenu", tr("Open a blank WMS layer to load data from a file"), 0, 0, false) {
     131                                JosmAction(tr("Blank Layer"), "blankmenu", tr("Open a blank WMS layer to load data from a file"), null, false) {
    131132                        public void actionPerformed(ActionEvent ev) {
    132133                                Main.main.addLayer(new WMSLayer());
Note: See TracChangeset for help on using the changeset viewer.