Changeset 3098 in osm for applications
- Timestamp:
- 2007-06-04T13:51:49+02:00 (18 years ago)
- Location:
- applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action
- Files:
-
- 2 added
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetWaypointAction.java
r2974 r3098 20 20 21 21 import at.dallermassl.josm.plugin.surveyor.GpsActionEvent; 22 import at.dallermassl.josm.plugin.surveyor.SurveyorPlugin; 23 import at.dallermassl.josm.plugin.surveyor.action.gui.WaypointDialog; 22 24 23 25 /** … … 31 33 private MarkerLayer markerLayer; 32 34 public static final String MARKER_LAYER_NAME = "surveyorwaypointlayer"; 35 private WaypointDialog dialog; 33 36 34 37 /** … … 57 60 } 58 61 62 if(dialog == null) { 63 dialog = new WaypointDialog(); 64 } 65 66 String markerText = markerTitle; 67 String inputText = dialog.openDialog(SurveyorPlugin.getSurveyorFrame(), "Waypoint Description"); 68 if(inputText != null && inputText.length() > 0) { 69 markerText = markerText + " " + inputText; 70 } 71 59 72 String iconName = getParameters().size() > 1 ? getParameters().get(1) : null; 60 73 synchronized(LiveGpsLock.class) { 61 layer.data.add(new Marker(event.getCoordinates(), markerT itle, iconName));74 layer.data.add(new Marker(event.getCoordinates(), markerText, iconName)); 62 75 } 63 76 Main.map.repaint(); -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/gui/DialogClosingThread.java
r3082 r3098 2 2 * 3 3 */ 4 package test;4 package at.dallermassl.josm.plugin.surveyor.action.gui; 5 5 6 6 import java.awt.Component;
Note:
See TracChangeset
for help on using the changeset viewer.