Changeset 34561 in osm
- Timestamp:
- 2018-08-18T20:26:59+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/tagging-preset-tester
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tagging-preset-tester/build.xml
r33898 r34561 5 5 <property name="commit.message" value="[josm_tagging_preset_tester] #josm10288: fix NPE when starting without map"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 2643"/>7 <property name="plugin.main.version" value="14153"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/tagging-preset-tester/src/org/openstreetmap/josm/plugins/taggingpresettester/TaggingPresetTester.java
r33898 r34561 20 20 import javax.swing.event.ListSelectionListener; 21 21 22 import org.openstreetmap.josm.Main;23 22 import org.openstreetmap.josm.data.coor.LatLon; 24 23 import org.openstreetmap.josm.data.osm.DataSet; … … 115 114 } 116 115 if (args!=null) { 117 Main.determinePlatformHook();118 System.out.println("Opening file "+args[0]);119 116 JFrame f = new TaggingPresetTester(args); 120 117 f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); -
applications/editors/josm/plugins/tagging-preset-tester/src/org/openstreetmap/josm/plugins/taggingpresettester/TaggingPresetTesterAction.java
r33898 r34561 9 9 import javax.swing.JOptionPane; 10 10 11 import org.openstreetmap.josm.Main;12 11 import org.openstreetmap.josm.actions.JosmAction; 13 12 import org.openstreetmap.josm.gui.MainApplication; … … 41 40 42 41 if (coll.isEmpty()) { 43 JOptionPane.showMessageDialog(Main .parent, tr("You have to specify tagging preset sources in the preferences first."));42 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr("You have to specify tagging preset sources in the preferences first.")); 44 43 return; 45 44 }
Note:
See TracChangeset
for help on using the changeset viewer.