[josm-dev] Opening the relation editor programmatically ?

Jo winfixit at gmail.com
Tue Jun 23 11:54:12 UTC 2015


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>:

> 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
> https://lists.openstreetmap.org/listinfo/josm-dev
>


More information about the josm-dev mailing list