Changeset 2970 in josm
- Timestamp:
- 2010-02-12T23:02:35+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r2963 r2970 344 344 } 345 345 346 private void fireMembersChanged() { 346 @Override 347 public void setDataset(DataSet dataSet) { 348 super.setDataset(dataSet); 349 checkMembers(); 350 } 351 352 private void checkMembers() { 347 353 DataSet dataSet = getDataSet(); 348 354 if (dataSet != null) { … … 351 357 throw new DataIntegrityProblemException("Relation member must be part of the same dataset as relation"); 352 358 } 353 dataSet.fireRelationMembersChanged(this); 359 } 360 } 361 362 private void fireMembersChanged() { 363 checkMembers(); 364 if (getDataSet() != null) { 365 getDataSet().fireRelationMembersChanged(this); 354 366 } 355 367 } -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r2963 r2970 364 364 } 365 365 366 private void fireNodesChanged() {366 private void checkNodes() { 367 367 DataSet dataSet = getDataSet(); 368 368 if (dataSet != null) { … … 371 371 throw new DataIntegrityProblemException("Nodes in way must be in the same dataset"); 372 372 } 373 } 374 } 375 376 private void fireNodesChanged() { 377 checkNodes(); 378 if (getDataSet() != null) { 373 379 getDataSet().fireWayNodesChanged(this); 374 380 } 381 } 382 383 @Override 384 public void setDataset(DataSet dataSet) { 385 super.setDataset(dataSet); 386 checkNodes(); 375 387 } 376 388
Note:
See TracChangeset
for help on using the changeset viewer.