Changeset 26669 in osm for applications/editors/josm/plugins
- Timestamp:
- 2011-09-18T17:13:34+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/harbour/src/harbour
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/harbour/src/harbour/layers/LayerHarbour.java
r24832 r26669 144 144 145 145 public boolean isChanged() { return isChanged; } 146 146 public void setChanged(Boolean state) { isChanged = state; } 147 147 148 public void setCenter(LatLon coor) { 148 149 if(lm != coor) { -
applications/editors/josm/plugins/smed/plugs/harbour/src/harbour/panels/PanelSearchPois.java
r24832 r26669 55 55 private JButton setButton = null; 56 56 private DataSet pois = null; 57 private DataSet activeDS = null; // @jve:decl-index=0: 57 58 58 59 /** … … 196 197 if(i >= 0) { 197 198 Main.map.mapView.setActiveLayer(layers.get(i)); 199 activeDS = Main.main.getCurrentDataSet(); 198 200 } 199 201 } … … 223 225 String name = null; 224 226 227 activeDS = Main.main.getCurrentDataSet(); 228 225 229 layerComboBox.removeAllItems(); 226 230 layers.clear(); … … 270 274 271 275 public void searchPois() { 272 DataSet data = Main.main.getCurrentDataSet();273 Collection<Node> nodes = data.getNodes();276 // DataSet data = Main.main.getCurrentDataSet(); 277 Collection<Node> nodes = activeDS.getNodes(); 274 278 SearchTableModel searchModel = (SearchTableModel) searchTable.getModel(); 275 279 276 280 pois.clear(); 281 Main.map.mapView.setActiveLayer(layerHarbour); 277 282 278 283 for(Node n : nodes) { … … 297 302 } 298 303 } 304 305 layerHarbour.setChanged(true); 306 Main.map.repaint(); 299 307 } 300 308
Note:
See TracChangeset
for help on using the changeset viewer.