Changeset 29151 in osm
- Timestamp:
- 2012-12-31T22:44:33+01:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/smed2/src
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/smed2/Smed2Action.java
r29150 r29151 46 46 public static PanelMain panelMain = null; 47 47 public ImageryLayer rendering; 48 public Collection<OsmPrimitive> data = null; 48 49 49 50 private final DataSetListener dataSetListener = new DataSetListener() { … … 92 93 public Smed2Action() { 93 94 super(editor, "Smed2", editor, null, true); 94 MapView.addEditLayerChangeListener(this); // DataSet.addDataSetListener(DataListener);95 MapView.addEditLayerChangeListener(this); 95 96 DataSet.addSelectionListener(this); 96 97 } … … 145 146 @Override 146 147 public void editLayerChanged(OsmDataLayer oldLayer, OsmDataLayer newLayer) { 148 System.out.println(newLayer); 147 149 if (oldLayer != null) { 148 150 oldLayer.data.removeDataSetListener(dataSetListener); … … 151 153 if (newLayer != null) { 152 154 newLayer.data.addDataSetListener(dataSetListener); 155 data = newLayer.data.allPrimitives(); 156 } else { 157 data = null; 153 158 } 154 159 }
Note:
See TracChangeset
for help on using the changeset viewer.