Changeset 16799 in osm for applications/editors/josm/plugins/routing/src
- Timestamp:
- 2009-08-03T12:05:48+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java
r16294 r16799 48 48 import org.openstreetmap.josm.data.osm.Node; 49 49 import org.openstreetmap.josm.data.osm.Way; 50 import org.openstreetmap.josm.data.osm.WaySegment;51 50 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 52 51 import org.openstreetmap.josm.gui.MapView; … … 184 183 public Component[] getMenuEntries() { 185 184 Collection<Component> components = new ArrayList<Component>(); 186 components.add(new JMenuItem( newLayerListDialog.ShowHideLayerAction(this)));185 components.add(new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this))); 187 186 // components.add(new JMenuItem(new LayerListDialog.ShowHideMarkerText(this))); 188 components.add(new JMenuItem( newLayerListDialog.DeleteLayerAction(this)));187 components.add(new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this))); 189 188 components.add(new JSeparator()); 190 189 components.add(new JMenuItem(new RenameLayerAction(getAssociatedFile(), this))); -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingPlugin.java
r16409 r16799 161 161 public void addLayer() { 162 162 OsmDataLayer osmLayer = Main.map.mapView.getEditLayer(); 163 RoutingLayer layer = new RoutingLayer(tr("Routing") + " [" + osmLayer. name+ "]", osmLayer);163 RoutingLayer layer = new RoutingLayer(tr("Routing") + " [" + osmLayer.getName() + "]", osmLayer); 164 164 layers.add(layer); 165 165 Main.main.addLayer(layer);
Note:
See TracChangeset
for help on using the changeset viewer.