Changeset 34521 in osm for applications


Ignore:
Timestamp:
2018-08-18T18:08:10+02:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14153

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

Legend:

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

    r34106 r34521  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="13558"/>
     7    <property name="plugin.main.version" value="14153"/>
    88
    99    <property name="plugin.author" value="Roland M. Olbricht"/>
  • applications/editors/josm/plugins/indoor_sweepline/src/indoor_sweepline/IndoorSweeplineWizardAction.java

    r33828 r34521  
    88import javax.swing.JOptionPane;
    99
    10 import org.openstreetmap.josm.Main;
    1110import org.openstreetmap.josm.actions.JosmAction;
     11import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    1212import org.openstreetmap.josm.gui.MainApplication;
    1313import org.openstreetmap.josm.gui.layer.Layer;
     
    3131    public void actionPerformed(ActionEvent event) {
    3232        if (layer == null)
    33             JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(Main.parent),
     33            JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()),
    3434                    "No default layer found.");
    3535        else if (!(layer instanceof OsmDataLayer))
    36             JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(Main.parent),
     36            JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()),
    3737                    "The default layer is not an OSM layer.");
    3838        else if (MainApplication.getMap() == null)
    39             JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(Main.parent),
     39            JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()),
    4040                    "No map found.");
    4141        else if (MainApplication.getMap().mapView == null)
    42             JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(Main.parent),
     42            JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()),
    4343                    "No map view found.");
    4444        else
    4545            new IndoorSweeplineController((OsmDataLayer) layer,
    46                     Main.getProjection().eastNorth2latlon(MainApplication.getMap().mapView.getCenter()));
     46                    ProjectionRegistry.getProjection().eastNorth2latlon(MainApplication.getMap().mapView.getCenter()));
    4747    }
    4848
  • applications/editors/josm/plugins/indoor_sweepline/src/indoor_sweepline/IndoorSweeplineWizardDialog.java

    r33828 r34521  
    3232import javax.swing.table.TableModel;
    3333
    34 import org.openstreetmap.josm.Main;
     34import org.openstreetmap.josm.gui.MainApplication;
    3535import org.openstreetmap.josm.tools.Logging;
    3636
     
    3838
    3939    public IndoorSweeplineWizardDialog(IndoorSweeplineController controller) {
    40         super(JOptionPane.getFrameForComponent(Main.parent), "Indoor Sweepline Wizard", false);
     40        super(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()), "Indoor Sweepline Wizard", false);
    4141
    4242        this.controller = controller;
     
    6969    public void setVisible(boolean visible) {
    7070        if (visible)
    71             setLocationRelativeTo(JOptionPane.getFrameForComponent(Main.parent));
     71            setLocationRelativeTo(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()));
    7272        super.setVisible(visible);
    7373    }
Note: See TracChangeset for help on using the changeset viewer.