#3696 closed enhancement (fixed)
[PATCH] Replace OsmPrimitive selection implementation with storage in DataSet
Reported by: | hansendc | Owned by: | hansendc |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: | Gubaer, hansendc |
Description
There will be three patches attached here:
- implement a LinkedHashSet inside DataSet to track selected objects
- Remove the OsmPrimitive selection functions
- Use the new LinkedHashSet to optimize a few operation in the DataSet
The LinkedHashSet should preserve ordering. The first item selected should be the first item returned from all of the functions that query selections. If an item is reselected, such as if a user clicked on it, then drew a box around it with Ctrl, the order of the first selection is maintained. This is due to the LinkedHashSet implementation.
Attachments (7)
Change History (14)
Changed 13 years ago by
Attachment: | implement-selection-storage-in-DataSet.patch added |
---|
Changed 13 years ago by
Attachment: | remove-primitive-selection-implementation.patch added |
---|
Changed 13 years ago by
Attachment: | optimize-selection-code.patch added |
---|
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Summary: | Replace OsmPrimitive selection implementation with storage in DataSet → [PATCH] Replace OsmPrimitive selection implementation with storage in DataSet |
---|
comment:3 Changed 13 years ago by
Cc: | hansendc added |
---|
Here are 3 updated patches. They've been updated to the latest svn
Changed 13 years ago by
Attachment: | implement-selection-storage-in-DataSet.2.patch added |
---|
Changed 13 years ago by
Attachment: | remove-primitive-selection-implementation.2.patch added |
---|
Changed 13 years ago by
Attachment: | optimize-selection-code.2.patch added |
---|
comment:4 Changed 13 years ago by
Owner: | changed from team to hansendc |
---|---|
Status: | new → needinfo |
Again, build is broken after the patches are applied (addSelected() on DataSet is missing)
comment:5 Changed 13 years ago by
Status: | needinfo → assigned |
---|
Ugh. Too many patches in too many tickets. ant is also really bad at finding .class files that are out of date.
Changed 13 years ago by
Attachment: | add-ds-addSelected.patch added |
---|
comment:6 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:7 Changed 13 years ago by
Please, please don't make multi-file patches. It's a pain to apply them.
I can't apply the patches. Two problems identified so far:
selectedPrimitves
inDataSet
missing?