Ignore:
Timestamp:
2009-08-03T11:52:41+02:00 (15 years ago)
Author:
guggis
Message:

Updated to JOSM release 1893

Location:
applications/editors/josm/plugins/editgpx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/editgpx/build.xml

    r16294 r16793  
    2626                <attribute name="Plugin-Description" value="Allows the user to anonymize timestamps and delete parts of huge GPX tracks very fast." />
    2727                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/EditGpx" />
    28                 <attribute name="Plugin-Mainversion" value="1725" />
     28                <attribute name="Plugin-Mainversion" value="1893" />
    2929                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3030            </manifest>
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxLayer.java

    r16294 r16793  
    33 */
    44package org.openstreetmap.josm.plugins.editgpx;
     5
     6import static org.openstreetmap.josm.tools.I18n.tr;
    57
    68import java.awt.Color;
     
    2123
    2224import org.openstreetmap.josm.Main;
    23 import org.openstreetmap.josm.data.coor.LatLon;
    2425import org.openstreetmap.josm.data.gpx.GpxData;
    2526import org.openstreetmap.josm.data.gpx.GpxTrack;
     
    3738import org.openstreetmap.josm.tools.ImageProvider;
    3839
    39 import static org.openstreetmap.josm.tools.I18n.tr;
    40 
    4140
    4241public class EditGpxLayer extends Layer {
     
    8079    public Component[] getMenuEntries() {
    8180        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)),
    8483            new JSeparator(),
    8584            new JMenuItem(layerImport),
     
    206205        }
    207206        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())));
    209208            Main.main.removeLayer(EditGpxLayer.this);
    210209        }
     
    217216        }
    218217        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())));
    220219            Main.main.removeLayer(EditGpxLayer.this);
    221220        }
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/GPXLayerImportAction.java

    r16294 r16793  
    8181                        Layer layer = (Layer)value;
    8282                        JLabel label = (JLabel)super.getListCellRendererComponent(list,
    83                                                                                   layer.name, index, isSelected, cellHasFocus);
     83                                                                                  layer.getName(), index, isSelected, cellHasFocus);
    8484                        Icon icon = layer.getIcon();
    8585                        label.setIcon(icon);
Note: See TracChangeset for help on using the changeset viewer.