- Timestamp:
- 2012-01-21T11:27:17+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io/remotecontrol
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/RequestProcessor.java
r4798 r4833 16 16 17 17 import org.openstreetmap.josm.io.remotecontrol.handler.AddNodeHandler; 18 import org.openstreetmap.josm.io.remotecontrol.handler.AddWayHandler; 18 19 import org.openstreetmap.josm.io.remotecontrol.handler.ImageryHandler; 19 20 import org.openstreetmap.josm.io.remotecontrol.handler.ImportHandler; … … 116 117 addRequestHandlerClass(ImageryHandler.command, ImageryHandler.class, true); 117 118 addRequestHandlerClass(AddNodeHandler.command, AddNodeHandler.class, true); 119 addRequestHandlerClass(AddWayHandler.command, AddWayHandler.class, true); 118 120 addRequestHandlerClass(ImportHandler.command, ImportHandler.class, true); 119 121 addRequestHandlerClass(VersionHandler.command, VersionHandler.class, true); -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddNodeHandler.java
r3707 r4833 5 5 6 6 import java.util.HashMap; 7 8 7 import org.openstreetmap.josm.Main; 8 import org.openstreetmap.josm.actions.AutoScaleAction; 9 9 import org.openstreetmap.josm.command.AddCommand; 10 10 import org.openstreetmap.josm.data.coor.LatLon; … … 38 38 39 39 @Override 40 public PermissionPrefWithDefault getPermissionPref() 41 { 40 public PermissionPrefWithDefault getPermissionPref() { 42 41 return new PermissionPrefWithDefault(permissionKey, permissionDefault, 43 42 "RemoteControl: creating objects forbidden by preferences"); … … 62 61 Main.main.undoRedo.add(new AddCommand(nnew)); 63 62 Main.main.getCurrentDataSet().setSelected(nnew); 64 Main.map.mapView.repaint(); 63 if (Main.pref.getBoolean(LoadAndZoomHandler.changeViewportPermissionKey, LoadAndZoomHandler.changeViewportPermissionDefault)) { 64 new AutoScaleAction("selection").actionPerformed(null); 65 } else { 66 Main.map.mapView.repaint(); 67 } 65 68 } 66 69 } -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadObjectHandler.java
r4799 r4833 1 1 package org.openstreetmap.josm.io.remotecontrol.handler; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 2 4 3 5 import java.util.LinkedList; … … 38 40 @Override 39 41 public String getPermissionMessage() { 40 return "";42 return tr("Remote Control has been asked to load objects (specified by their id) from the API."); 41 43 } 42 44 }
Note:
See TracChangeset
for help on using the changeset viewer.