Changeset 13212 in osm for applications/editors
- Timestamp:
- 2009-01-14T21:52:11+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/NewIssueAction.java
r12778 r13212 54 54 55 55 private OsbPlugin plugin; 56 57 private Cursor previousCursor; 56 58 57 59 public NewIssueAction(JToggleButton button, OsbPlugin plugin) { … … 64 66 protected void doActionPerformed(ActionEvent e) throws IOException { 65 67 if(button.isSelected()) { 68 previousCursor = Main.map.mapView.getCursor(); 66 69 Main.map.mapView.setCursor(new Cursor(Cursor.CROSSHAIR_CURSOR)); 67 70 Main.map.mapView.addMouseListener(this); … … 72 75 73 76 private void reset() { 74 Main.map.mapView.setCursor( new Cursor(Cursor.DEFAULT_CURSOR));77 Main.map.mapView.setCursor(previousCursor); 75 78 Main.map.mapView.removeMouseListener(this); 76 79 button.setSelected(false);
Note:
See TracChangeset
for help on using the changeset viewer.