Changeset 12579 in osm for applications/editors/josm


Ignore:
Timestamp:
2008-12-25T14:36:26+01:00 (16 years ago)
Author:
stoecker
Message:

updated

Location:
applications/editors/josm/plugins/utilsplugin
Files:
3 edited

Legend:

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

    r8815 r12579  
    2626  <target name="compile" depends="init">
    2727    <echo message="creating ${plugin.jar}"/>
    28     <javac srcdir="src" classpath="${josm}" destdir="build" debug="true"/>
     28    <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
     29       <compilerarg value="-Xlint:deprecation"/>
     30     </javac>
    2931  </target>
    3032
     
    4648        <attribute name="Plugin-Description" value="Useful JOSM utilities"/>
    4749        <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     50        <attribute name="Plugin-Mainversion" value="1179"/>
    4851        <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    4952        <attribute name="Author"
  • applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/SimplifyWayAction.java

    r12443 r12579  
    2727import org.openstreetmap.josm.data.osm.visitor.CollectBackReferencesVisitor;
    2828import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     29import org.openstreetmap.josm.tools.Shortcut;
    2930
    3031public class SimplifyWayAction extends JosmAction {
    3132    public SimplifyWayAction() {
    32         super(tr("Simplify Way"), "simplify", tr("Delete unnecessary nodes from a way."), KeyEvent.VK_Y,
    33                 KeyEvent.CTRL_MASK | KeyEvent.SHIFT_MASK, true);
     33        super(tr("Simplify Way"), "simplify", tr("Delete unnecessary nodes from a way."), Shortcut.registerShortcut("tools:simplify", tr("Tool: {0}", tr("Simplify Way")),
     34        KeyEvent.VK_Y, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true);
    3435    }
    3536
  • applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/UtilsPlugin.java

    r11974 r12579  
    1717import org.openstreetmap.josm.plugins.Plugin;
    1818import org.openstreetmap.josm.gui.MapFrame;
     19import org.openstreetmap.josm.gui.MainMenu;
    1920import org.openstreetmap.josm.gui.IconToggleButton;
    2021import org.openstreetmap.josm.actions.JosmAction;
     
    2425
    2526        public UtilsPlugin() {
    26                 JosmAction action;
    27                
    28                 action = new SimplifyWayAction();
    29                 SimplifyWay = Main.main.menu.toolsMenu.add(action);
    30                 SimplifyWay.setAccelerator(action.shortcut);
     27                SimplifyWay = MainMenu.add(Main.main.menu.toolsMenu, new SimplifyWayAction());
    3128                SimplifyWay.setEnabled(false);
    3229        }
Note: See TracChangeset for help on using the changeset viewer.