Ignore:
Timestamp:
2011-01-16T15:24:56+01:00 (14 years ago)
Author:
hind
Message:

Moar bugfixes

Location:
applications/editors/josm/plugins/CommandLine
Files:
4 edited

Legend:

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

    r25059 r25060  
    33
    44    <!-- enter the SVN commit message -->
    5     <property name="commit.message" value="Small bugfix for correct xml file opening" />
     5    <property name="commit.message" value="Moar bugfixes" />
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    77    <property name="plugin.main.version" value="3751" />
  • applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLineAction.java

    r25038 r25060  
    4040       
    4141        public CommandLineAction(CommandLine parentPlugin) {
    42                 super(tr("Command line"), "simplify", tr("Set input focus to the command line."),
     42                super(tr("Command line"), "blankmenu", tr("Set input focus to the command line."),
    4343                Shortcut.registerShortcut("edit:simplifyArea", tr("Tool: {0}", tr("Command line")), KeyEvent.VK_ENTER, Shortcut.GROUP_DIRECT, 0), true);
    4444                this.parentPlugin = parentPlugin;
  • applications/editors/josm/plugins/CommandLine/src/CommandLine/LengthAction.java

    r25052 r25060  
    6060
    6161        public LengthAction(MapFrame mapFrame, CommandLine parentPlugin) {
    62                 super(null, "building", null, mapFrame, ImageProvider.getCursor("crosshair", null));
     62                super(null, "addsegment.png", null, mapFrame, ImageProvider.getCursor("crosshair", null));
    6363                this.parentPlugin = parentPlugin;
    6464                selectedColor = Main.pref.getColor(marktr("selected"), Color.red);
  • applications/editors/josm/plugins/CommandLine/src/CommandLine/Loader.java

    r25059 r25060  
    5757        private void loadFile(SAXParser parser, String fileName) {
    5858                try {
    59                         parser.parse(new File(fileName).toURI().toString(), this);
     59                        String a = new File(fileName).toURI().toString().replace("file:/", "file:///");
     60                        System.out.println(a);
     61                        parser.parse(a, this);
    6062                }
    6163                catch (Exception e) {
Note: See TracChangeset for help on using the changeset viewer.