Changeset 12630 in josm for trunk/src/org/openstreetmap/josm/gui/layer/ValidatorLayer.java
- Timestamp:
- 2017-08-24T00:15:51+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/ValidatorLayer.java
r12028 r12630 22 22 import org.openstreetmap.josm.data.validation.Severity; 23 23 import org.openstreetmap.josm.data.validation.TestError; 24 import org.openstreetmap.josm.gui.MainApplication; 24 25 import org.openstreetmap.josm.gui.MapView; 25 26 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; … … 49 50 super(tr("Validation errors")); 50 51 Main.getLayerManager().addLayerChangeListener(this); 51 Main .map.validatorDialog.tree.addInvalidationListener(invalidator);52 MainApplication.getMap().validatorDialog.tree.addInvalidationListener(invalidator); 52 53 } 53 54 … … 68 69 @Override 69 70 public void paint(final Graphics2D g, final MapView mv, Bounds bounds) { 70 DefaultMutableTreeNode root = Main .map.validatorDialog.tree.getRoot();71 DefaultMutableTreeNode root = MainApplication.getMap().validatorDialog.tree.getRoot(); 71 72 if (root == null || root.getChildCount() == 0) 72 73 return; … … 94 95 public String getToolTipText() { 95 96 MultiMap<Severity, TestError> errorTree = new MultiMap<>(); 96 List<TestError> errors = Main .map.validatorDialog.tree.getErrors();97 List<TestError> errors = MainApplication.getMap().validatorDialog.tree.getErrors(); 97 98 for (TestError e : errors) { 98 99 errorTree.put(e.getSeverity(), e); … … 173 174 @Override 174 175 public synchronized void destroy() { 175 Main .map.validatorDialog.tree.removeInvalidationListener(invalidator);176 MainApplication.getMap().validatorDialog.tree.removeInvalidationListener(invalidator); 176 177 Main.getLayerManager().removeLayerChangeListener(this); 177 178 super.destroy();
Note:
See TracChangeset
for help on using the changeset viewer.