Changeset 32468 in osm for applications/editors/josm/plugins/indoorhelper/src/model
- Timestamp:
- 2016-06-30T20:10:45+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/indoorhelper/src/model/IndoorHelperModel.java
r32122 r32468 39 39 * @author egru 40 40 */ 41 42 41 public class IndoorHelperModel{ 43 42 … … 261 260 */ 262 261 public void addTagsToOSM(IndoorObject object, List<Tag> userTags){ 263 if(!Main. main.getCurrentDataSet().selectionEmpty() && !Main.main.getInProgressSelection().isEmpty()){262 if(!Main.getLayerManager().getEditDataSet().selectionEmpty() && !Main.main.getInProgressSelection().isEmpty()){ 264 263 265 264 List<Tag> tags = this.getObjectTags(object); … … 279 278 } 280 279 281 } else if(Main. main.getCurrentDataSet().selectionEmpty()){280 } else if(Main.getLayerManager().getEditDataSet().selectionEmpty()){ 282 281 283 282 JOptionPane.showMessageDialog(null, "No data selected.", "Error", JOptionPane.ERROR_MESSAGE); 284 285 } 286 283 } 287 284 } 288 285 … … 295 292 public void addTagsToOSM(IndoorObject object){ 296 293 297 if(!Main. main.getCurrentDataSet().selectionEmpty() && !Main.main.getInProgressSelection().isEmpty()){294 if(!Main.getLayerManager().getEditDataSet().selectionEmpty() && !Main.main.getInProgressSelection().isEmpty()){ 298 295 List<Tag> tags = this.getObjectTags(object); 299 296 tags.add(new Tag("indoor:level", Integer.toString(workingLevel))); … … 306 303 Main.main.undoRedo.add(new ChangePropertyCommand(Main.main.getInProgressSelection(), t.getKey(), t.getValue())); 307 304 } 308 } else if(Main. main.getCurrentDataSet().selectionEmpty()){305 } else if(Main.getLayerManager().getEditDataSet().selectionEmpty()){ 309 306 JOptionPane.showMessageDialog(null, "No data selected.", "Error", JOptionPane.ERROR_MESSAGE); 310 307 } 311 312 313 308 } 314 309 … … 321 316 return counter.getRanking(); 322 317 } 323 324 325 326 318 }
Note:
See TracChangeset
for help on using the changeset viewer.