Changeset 16587 in osm for applications/editors


Ignore:
Timestamp:
2009-07-19T19:21:43+02:00 (15 years ago)
Author:
jttt
Message:

Made plug-in work with JOSM new ProgressMonitor API

Location:
applications/editors/josm/plugins/openvisible
Files:
2 added
2 edited

Legend:

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

    r15707 r16587  
    2626                <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5"/>
    2727                <attribute name="Plugin-Description" value="Allows opening gpx/osm files that intersect the currently visible screen area"/>
    28                 <attribute name="Plugin-Mainversion" value="1646"/>
     28                <attribute name="Plugin-Mainversion" value="1813"/>
    2929                <attribute name="Plugin-Stage" value="50"/>
    3030                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
  • applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisibleAction.java

    r15707 r16587  
    88import java.awt.Rectangle;
    99import java.awt.event.ActionEvent;
    10 import java.awt.event.InputEvent;
    1110import java.awt.event.KeyEvent;
    1211import java.io.BufferedInputStream;
     
    2120
    2221import org.openstreetmap.josm.Main;
    23 import org.openstreetmap.josm.actions.ExtensionFileFilter;
    2422import org.openstreetmap.josm.actions.JosmAction;
    2523import org.openstreetmap.josm.data.coor.LatLon;
     
    2927import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    3028import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
     29import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    3130import org.openstreetmap.josm.io.GpxImporter;
    3231import org.openstreetmap.josm.io.GpxReader;
     
    103102        String fn = file.getName();
    104103        if (new OsmImporter().acceptFile(file)) {
    105             DataSet dataSet = OsmReader.parseDataSet(new FileInputStream(file), null, Main.pleaseWaitDlg);
     104            DataSet dataSet = OsmReader.parseDataSet(new FileInputStream(file), NullProgressMonitor.INSTANCE);
    106105            OsmDataLayer layer = new OsmDataLayer(dataSet, fn, file);
    107106            Main.main.addLayer(layer);
Note: See TracChangeset for help on using the changeset viewer.