[josm-dev] How to update changes in dataSet ?
Flávio Henrique
yoshimit at gmail.com
Tue Jan 4 20:22:47 GMT 2011
On Tue, Jan 4, 2011 at 18:01, Dirk Stöcker <openstreetmap at dstoecker.de>wrote:
> Notes:
>
> 1) You don't use the returned way of a combine, so your code wont find all
> possibilities. I don't know what you final goal is, but I would
> make a loop around
>
> changed = true;
> while(changed)
> {
> changed = false;
> for ...
> changed = true in case combine worked at least once
> }
>
> and integrate the combined ways in subsequent calls and dropping the used
> ones.
>
Hmm... I was doing something like this before. After so many changes I
forgot to use the combined way. Thanks.
One question that could clarify many things for me:
after calling Main.main.undoRedo.add(new SequenceCommand(tr("My job"),
cmds)), a new calling for method:
nc.getCurrentDataSet().getWays() should return the combined ways (without
the original ones)?
Thank you.
Flávio
More information about the josm-dev
mailing list