[josm-dev] Opening the relation editor programmatically ?

Matthieu Gaillet mgwebmail at fastmail.fm
Tue Jun 23 12:31:15 UTC 2015


Wow ! THANKS Jo !

Matthieu

> On 23 Jun 2015, at 13:54, Jo <winfixit at gmail.com> wrote:
> 
> Hi Matthieu,
> 
> I finally managed to figure it out:
> 
> import org.openstreetmap.josm.gui.dialogs.relation.RelationEditor as RelationEditor
> RelationEditor.getEditor(mv.getEditLayer(), newRelation, None).setVisible(True)
> 
> 2015-04-30 12:44 GMT+02:00 Matthieu Gaillet <mgwebmail at fastmail.fm <mailto:mgwebmail at fastmail.fm>>:
> Hi,
> 
> I’m using a small Python script (launched using the scripting plugin) to create a relation based on the currently selected ways. I’d like to open this newly created relation in the relation editor aftermath so that one can review the result, ensure continuity, and so on.
> 
> How can I do that programmatically ?
> 
> Thanks
> 
> Matthieu
> _______________________________________________
> josm-dev mailing list
> josm-dev at openstreetmap.org <mailto:josm-dev at openstreetmap.org>
> https://lists.openstreetmap.org/listinfo/josm-dev <https://lists.openstreetmap.org/listinfo/josm-dev>
> 



More information about the josm-dev mailing list