Changeset 33887 in osm for applications/editors/josm/plugins/indoorhelper/src/model/IndoorHelperModel.java
- Timestamp:
- 2017-11-25T01:25:40+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/indoorhelper/src/model/IndoorHelperModel.java
r32637 r33887 29 29 import org.openstreetmap.josm.data.osm.Filter.FilterPreferenceEntry; 30 30 import org.openstreetmap.josm.data.osm.Tag; 31 import org.openstreetmap.josm.gui.MainApplication; 31 32 import org.openstreetmap.josm.gui.dialogs.FilterDialog; 32 33 import org.openstreetmap.josm.gui.dialogs.FilterTableModel; … … 78 79 79 80 // Get the filter dialog 80 FilterDialog filterDialog = Main .map.getToggleDialog(FilterDialog.class);81 FilterDialog filterDialog = MainApplication.getMap().getToggleDialog(FilterDialog.class); 81 82 82 83 if (filterDialog != null) { … … 123 124 124 125 // Get the filter dialog 125 FilterDialog filterDialog = Main .map.getToggleDialog(FilterDialog.class);126 FilterDialog filterDialog = MainApplication.getMap().getToggleDialog(FilterDialog.class); 126 127 127 128 if (filterDialog != null) { … … 182 183 this.workingLevel = this.getLevelNumberFromIndex(index); 183 184 184 FilterDialog filterDialog = Main .map.getToggleDialog(FilterDialog.class);185 FilterDialog filterDialog = MainApplication.getMap().getToggleDialog(FilterDialog.class); 185 186 FilterTableModel filterTableModel = filterDialog.getFilterModel(); 186 187 … … 258 259 */ 259 260 public void addTagsToOSM(IndoorObject object, List<Tag> userTags) { 260 if (!Main.getLayerManager().getEditDataSet().selectionEmpty() && !Main.main.getInProgressSelection().isEmpty()) { 261 if (!MainApplication.getLayerManager().getEditDataSet().selectionEmpty() && !Main.main.getInProgressSelection().isEmpty()) { 261 262 262 263 List<Tag> tags = this.getObjectTags(object); … … 276 277 } 277 278 278 } else if (Main.getLayerManager().getEditDataSet().selectionEmpty()) { 279 } else if (MainApplication.getLayerManager().getEditDataSet().selectionEmpty()) { 279 280 280 281 JOptionPane.showMessageDialog(null, "No data selected.", "Error", JOptionPane.ERROR_MESSAGE); … … 290 291 public void addTagsToOSM(IndoorObject object) { 291 292 292 if (!Main.getLayerManager().getEditDataSet().selectionEmpty() && !Main.main.getInProgressSelection().isEmpty()) { 293 if (!MainApplication.getLayerManager().getEditDataSet().selectionEmpty() && !Main.main.getInProgressSelection().isEmpty()) { 293 294 List<Tag> tags = this.getObjectTags(object); 294 295 tags.add(new Tag("indoor:level", Integer.toString(workingLevel))); … … 301 302 Main.main.undoRedo.add(new ChangePropertyCommand(Main.main.getInProgressSelection(), t.getKey(), t.getValue())); 302 303 } 303 } else if (Main.getLayerManager().getEditDataSet().selectionEmpty()) { 304 } else if (MainApplication.getLayerManager().getEditDataSet().selectionEmpty()) { 304 305 JOptionPane.showMessageDialog(null, "No data selected.", "Error", JOptionPane.ERROR_MESSAGE); 305 306 }
Note:
See TracChangeset
for help on using the changeset viewer.