[josm-dev] Set Date of a Waypoing
Hi, I try to create a Waypoint with a custom time, this seems to be impossible, right? No way to patch the date object If nobody has an idea, I recommed to add a second constructor, asking for the date, too. This would be usefull for the editgpx plugin and for my videomapping plugin (interpolation). regards Matthias ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Register for keys/shortcuts
Hi, sry it's me again with this annoying issue :( Can anybody help me with a good snippet to register Keys as JOSM plugin, please? I'm not sure if it is a problem cause I haven't got the focus as layer or if I use the wrong techniques. I tried: Main.panel.addKeyListener(this); Main.map.mapView.addKeyListener(this); Main.map.mapView.getRootPane().getGlassPane().addKeyListener(this); and of course the InputMap approach: Main.contentPane.getInputMap().put(KeyStroke.getKeyStroke(SPACE),pressed); Main.contentPane.getActionMap().put(pressed,a); Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE,0),a); Main.contentPane.getActionMap().put(doSomething,a); Sry but I'm realy annoyed cause I can't realise such a cheap feature :-( nice weekeend Matthias ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
[josm-dev] [Fwd: Re: Register for keys/shortcuts]
Hi, haven't you received my email? (see below) Cheers, Sebastian Original Message Subject: Re: [josm-dev] Register for keys/shortcuts Date: Tue, 18 May 2010 21:23:41 +0200 From: Sebastian Klein basti...@gmail.com To: Matthias Meißer dig...@arcor.de References: 4bf13fe9.8030...@arcor.de 4bf14415.2050...@gmail.com 4bf297ea.1090...@arcor.de 4bf2a427.8040...@gmail.com 4bf2b4b6@arcor.de Matthias Meißer wrote: Hallo Sebastian, also vielleicht bin ich echt zu doof aber irgendwie kriege ich das echt nicht hin :( Kann es sein, dass Main da die Falsche Komponente ist? //Main.panel.addKeyListener(this); //Main.map.mapView.addKeyListener(this); Main.contentPane.getInputMap().put(KeyStroke.getKeyStroke(SPACE),pressed); Main.contentPane.getActionMap().put(pressed,a); nichts davon funktioniert :( Ich habe es mal ins SVN eingecheckt, vielleicht hast du da noch ne Idee? Hm, merkwürdig, probiers mal mit Main.registerActionShortcut(a, KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0)); Viele Grüße, Sebastian ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev