Changeset 30021 in osm for applications/editors
- Timestamp:
- 2013-10-12T13:30:42+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/smed2/Smed2Action.java
r30020 r30021 31 31 import s57.S57dat; 32 32 import seamap.SeaMap; 33 import seamap.SeaMap.*; 33 34 34 35 import panels.PanelMain; … … 37 38 public class Smed2Action extends JosmAction implements EditLayerChangeListener, SelectionChangedListener { 38 39 40 private static final long serialVersionUID = 1L; 39 41 private static String editor = tr("SeaMap Editor"); 40 42 public static JFrame editFrame = null; … … 176 178 OsmPrimitive feature = null; 177 179 178 if (selection.size() == 0) showFrame.setVisible(false); 180 showFrame.setVisible(false); 181 panelMain.clearMark(); 179 182 for (OsmPrimitive osm : selection) { 180 nextFeature = osm; 181 if (selection.size() == 1) { 182 if (nextFeature.compareTo(feature) != 0) { 183 feature = nextFeature; 184 // panelMain.parseMark(map.index.get(feature.getUniqueId())); 185 // showFrame.setVisible(true); 186 // showFrame.showFeature(feature, map); 183 nextFeature = osm; 184 if (selection.size() == 1) { 185 if (nextFeature.compareTo(feature) != 0) { 186 feature = nextFeature; 187 Feature id = map.index.get(feature.getUniqueId()); 188 if (id != null) { 189 panelMain.parseMark(id); 190 showFrame.setVisible(true); 191 showFrame.showFeature(feature, map); 187 192 } 188 } else { 189 showFrame.setVisible(false); 190 PanelMain.messageBar.setText(tr("Select only one feature")); 191 } 192 } 193 } 194 } else { 195 showFrame.setVisible(false); 196 PanelMain.messageBar.setText(tr("Select only one feature")); 197 } 198 } 193 199 if (nextFeature == null) { 194 200 feature = null;
Note:
See TracChangeset
for help on using the changeset viewer.