Changeset 2512 in josm for trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeModel.java
- Timestamp:
- 2009-11-24T10:45:04+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeModel.java
r1954 r2512 17 17 /** 18 18 * This is the {@see TableModel} used in the tables of the {@see TagMerger}. 19 * 19 * 20 20 * The model can {@see #populate(OsmPrimitive, OsmPrimitive)} itself from the conflicts 21 21 * in the tag sets of two {@see OsmPrimitive}s. Internally, it keeps a list of {@see TagMergeItem}s. 22 * 22 * 23 23 * {@see #decide(int, MergeDecisionType)} and {@see #decide(int[], MergeDecisionType)} can be used 24 24 * to remember a merge decision for a specific row in the model. 25 * 25 * 26 26 * The model notifies {@see PropertyChangeListener}s about updates of the number of 27 27 * undecided tags (see {@see #PROP_NUM_UNDECIDED_TAGS}). 28 * 28 * 29 29 */ 30 30 public class TagMergeModel extends DefaultTableModel { … … 40 40 41 41 private int numUndecidedTags = 0; 42 43 42 44 43 public TagMergeModel() { … … 81 80 * refreshes the number of undecided tag conflicts after an update in the list of 82 81 * {@see TagMergeItem}s. Notifies {@see PropertyChangeListener} if necessary. 83 * 82 * 84 83 */ 85 84 protected void refreshNumUndecidedTags() { … … 99 98 * Populate the model with conflicts between the tag sets of the two 100 99 * {@see OsmPrimitive} <code>my</code> and <code>their</code>. 101 * 100 * 102 101 * @param my my primitive (i.e. the primitive from the local dataset) 103 102 * @param their their primitive (i.e. the primitive from the server dataset) 104 * 103 * 105 104 */ 106 105 public void populate(OsmPrimitive my, OsmPrimitive their) { … … 124 123 /** 125 124 * add a {@see TagMergeItem} to the model 126 * 125 * 127 126 * @param item the item 128 127 */ … … 143 142 * set the merge decision of the {@see TagMergeItem} in row <code>row</code> 144 143 * to <code>decision</code>. 145 * 144 * 146 145 * @param row the row 147 146 * @param decision the decision … … 156 155 * set the merge decision of all {@see TagMergeItem} given by indices in <code>rows</code> 157 156 * to <code>decision</code>. 158 * 157 * 159 158 * @param row the array of row indices 160 159 * @param decision the decision … … 175 174 return tagMergeItems == null ? 0 : tagMergeItems.size(); 176 175 } 177 178 176 179 177 @Override
Note:
See TracChangeset
for help on using the changeset viewer.