- Timestamp:
- 2017-05-15T12:50:02+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/pair/AbstractListMergeModel.java
r11747 r12151 76 76 */ 77 77 public abstract class AbstractListMergeModel<T extends PrimitiveId, C extends ConflictResolveCommand> extends ChangeNotifier { 78 /** 79 * The property name to listen for frozen changes. 80 * @see #setFrozen(boolean) 81 * @see #isFrozen() 82 */ 78 83 public static final String FROZEN_PROP = AbstractListMergeModel.class.getName() + ".frozen"; 79 84 … … 230 235 PropertyChangeEvent evt = new PropertyChangeEvent(this, FROZEN_PROP, oldValue, newValue); 231 236 listeners.forEach(listener -> listener.propertyChange(evt)); 232 } 233 } 234 237 } 238 } 239 240 /** 241 * Sets the frozen status for this model. 242 * @param isFrozen <code>true</code> if it should be frozen. 243 */ 235 244 public final void setFrozen(boolean isFrozen) { 236 245 boolean oldValue = this.isFrozen; … … 239 248 } 240 249 250 /** 251 * Check if the model is frozen. 252 * @return The current frozen state. 253 */ 241 254 public final boolean isFrozen() { 242 255 return isFrozen; … … 398 411 } 399 412 413 /** 414 * Copies over all values from the given side to the merged table.. 415 * @param source The source side to copy from. 416 */ 400 417 public void copyAll(ListRole source) { 401 418 getMergedEntries().clear(); … … 567 584 */ 568 585 protected boolean myAndTheirEntriesEqual() { 569 570 586 if (getMyEntriesSize() != getTheirEntriesSize()) 571 587 return false; … … 704 720 } 705 721 722 /** 723 * Get the role of the table. 724 * @return The role. 725 */ 706 726 public ListRole getRole() { 707 727 return role;
Note:
See TracChangeset
for help on using the changeset viewer.