Changeset 34521 in osm for applications
- Timestamp:
- 2018-08-18T18:08:10+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/indoor_sweepline
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/indoor_sweepline/build.xml
r34106 r34521 5 5 <property name="commit.message" value="Commit message"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 3558"/>7 <property name="plugin.main.version" value="14153"/> 8 8 9 9 <property name="plugin.author" value="Roland M. Olbricht"/> -
applications/editors/josm/plugins/indoor_sweepline/src/indoor_sweepline/IndoorSweeplineWizardAction.java
r33828 r34521 8 8 import javax.swing.JOptionPane; 9 9 10 import org.openstreetmap.josm.Main;11 10 import org.openstreetmap.josm.actions.JosmAction; 11 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 12 12 import org.openstreetmap.josm.gui.MainApplication; 13 13 import org.openstreetmap.josm.gui.layer.Layer; … … 31 31 public void actionPerformed(ActionEvent event) { 32 32 if (layer == null) 33 JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(Main .parent),33 JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()), 34 34 "No default layer found."); 35 35 else if (!(layer instanceof OsmDataLayer)) 36 JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(Main .parent),36 JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()), 37 37 "The default layer is not an OSM layer."); 38 38 else if (MainApplication.getMap() == null) 39 JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(Main .parent),39 JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()), 40 40 "No map found."); 41 41 else if (MainApplication.getMap().mapView == null) 42 JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(Main .parent),42 JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()), 43 43 "No map view found."); 44 44 else 45 45 new IndoorSweeplineController((OsmDataLayer) layer, 46 Main.getProjection().eastNorth2latlon(MainApplication.getMap().mapView.getCenter()));46 ProjectionRegistry.getProjection().eastNorth2latlon(MainApplication.getMap().mapView.getCenter())); 47 47 } 48 48 -
applications/editors/josm/plugins/indoor_sweepline/src/indoor_sweepline/IndoorSweeplineWizardDialog.java
r33828 r34521 32 32 import javax.swing.table.TableModel; 33 33 34 import org.openstreetmap.josm. Main;34 import org.openstreetmap.josm.gui.MainApplication; 35 35 import org.openstreetmap.josm.tools.Logging; 36 36 … … 38 38 39 39 public IndoorSweeplineWizardDialog(IndoorSweeplineController controller) { 40 super(JOptionPane.getFrameForComponent(Main .parent), "Indoor Sweepline Wizard", false);40 super(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()), "Indoor Sweepline Wizard", false); 41 41 42 42 this.controller = controller; … … 69 69 public void setVisible(boolean visible) { 70 70 if (visible) 71 setLocationRelativeTo(JOptionPane.getFrameForComponent(Main .parent));71 setLocationRelativeTo(JOptionPane.getFrameForComponent(MainApplication.getMainFrame())); 72 72 super.setVisible(visible); 73 73 }
Note:
See TracChangeset
for help on using the changeset viewer.