Changeset 16793 in osm for applications/editors/josm/plugins/editgpx/src/org/openstreetmap
- Timestamp:
- 2009-08-03T11:52:41+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxLayer.java
r16294 r16793 3 3 */ 4 4 package org.openstreetmap.josm.plugins.editgpx; 5 6 import static org.openstreetmap.josm.tools.I18n.tr; 5 7 6 8 import java.awt.Color; … … 21 23 22 24 import org.openstreetmap.josm.Main; 23 import org.openstreetmap.josm.data.coor.LatLon;24 25 import org.openstreetmap.josm.data.gpx.GpxData; 25 26 import org.openstreetmap.josm.data.gpx.GpxTrack; … … 37 38 import org.openstreetmap.josm.tools.ImageProvider; 38 39 39 import static org.openstreetmap.josm.tools.I18n.tr;40 41 40 42 41 public class EditGpxLayer extends Layer { … … 80 79 public Component[] getMenuEntries() { 81 80 return new Component[] { 82 new JMenuItem( new LayerListDialog.ShowHideLayerAction(this)),83 new JMenuItem( new LayerListDialog.DeleteLayerAction(this)),81 new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)), 82 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)), 84 83 new JSeparator(), 85 84 new JMenuItem(layerImport), … … 206 205 } 207 206 public void actionPerformed(ActionEvent e) { 208 Main.main.addLayer(new GpxLayer(toGpxData(false), tr("Converted from: {0}", name)));207 Main.main.addLayer(new GpxLayer(toGpxData(false), tr("Converted from: {0}", getName()))); 209 208 Main.main.removeLayer(EditGpxLayer.this); 210 209 } … … 217 216 } 218 217 public void actionPerformed(ActionEvent e) { 219 Main.main.addLayer(new GpxLayer(toGpxData(true), tr("Converted from: {0}", name)));218 Main.main.addLayer(new GpxLayer(toGpxData(true), tr("Converted from: {0}", getName()))); 220 219 Main.main.removeLayer(EditGpxLayer.this); 221 220 } -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/GPXLayerImportAction.java
r16294 r16793 81 81 Layer layer = (Layer)value; 82 82 JLabel label = (JLabel)super.getListCellRendererComponent(list, 83 layer. name, index, isSelected, cellHasFocus);83 layer.getName(), index, isSelected, cellHasFocus); 84 84 Icon icon = layer.getIcon(); 85 85 label.setIcon(icon);
Note:
See TracChangeset
for help on using the changeset viewer.