Changeset 17390 in osm
- Timestamp:
- 2009-08-30T18:41:48+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/wmsplugin
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/build.xml
r17278 r17390 32 32 <property name="ant.build.javac.target" value="1.5"/> 33 33 <property name="commit.message" value="fixing JOSM issue #3186" /> 34 <property name="josm.reference.release" value=" 1949" />34 <property name="josm.reference.release" value="2012" /> 35 35 36 36 <target name="init"> -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/Map_Rectifier_WMSmenuAction.java
r16781 r17390 23 23 import org.openstreetmap.josm.actions.JosmAction; 24 24 import org.openstreetmap.josm.gui.ExtendedDialog; 25 import org.openstreetmap.josm.gui.OptionPaneUtil;26 25 import org.openstreetmap.josm.tools.GBC; 27 26 import org.openstreetmap.josm.tools.Shortcut; … … 196 195 197 196 // and display an error message. The while(true) ensures that the dialog pops up again 198 OptionPaneUtil.showMessageDialog(Main.parent,197 JOptionPane.showMessageDialog(Main.parent, 199 198 tr("Couldn't match the entered link or id to the selected service. Please try again."), 200 199 tr("No valid WMS URL or id"), -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSAdjustAction.java
r16872 r17390 25 25 import org.openstreetmap.josm.gui.ExtendedDialog; 26 26 import org.openstreetmap.josm.gui.MapFrame; 27 import org.openstreetmap.josm.gui.OptionPaneUtil;28 27 import org.openstreetmap.josm.gui.layer.Layer; 29 28 import org.openstreetmap.josm.tools.GBC; … … 187 186 */ 188 187 protected void warnNoWMSLayers() { 189 OptionPaneUtil.showMessageDialog(188 JOptionPane.showMessageDialog( 190 189 Main.parent, 191 190 tr("There are currently no WMS layer to adjust."), -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSGrabber.java
r17340 r17390 28 28 import org.openstreetmap.josm.data.projection.Mercator; 29 29 import org.openstreetmap.josm.gui.MapView; 30 import org.openstreetmap.josm.gui.OptionPaneUtil;31 30 import org.openstreetmap.josm.io.CacheFiles; 32 31 import org.openstreetmap.josm.io.OsmTransferException; … … 122 121 if(!projname.equals(m.group(1)) && warn) 123 122 { 124 OptionPaneUtil.showMessageDialog(Main.parent,123 JOptionPane.showMessageDialog(Main.parent, 125 124 tr("The projection ''{0}'' in URL and current projection ''{1}'' mismatch.\n" 126 125 + "This may lead to wrong coordinates.", -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java
r17343 r17390 32 32 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 33 33 import org.openstreetmap.josm.gui.MapView; 34 import org.openstreetmap.josm.gui.OptionPaneUtil;35 34 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 36 35 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; … … 164 163 165 164 if((bmaxx - bminx > dax) || (bmaxy - bminy > day)){ 166 OptionPaneUtil.showMessageDialog(165 JOptionPane.showMessageDialog( 167 166 Main.parent, 168 167 tr("The requested area is too big. Please zoom in a little, or change resolution"), … … 340 339 int sfv = ois.readInt(); 341 340 if (sfv != serializeFormatVersion) { 342 OptionPaneUtil.showMessageDialog(Main.parent,341 JOptionPane.showMessageDialog(Main.parent, 343 342 tr("Unsupported WMS file version; found {0}, expected {1}", sfv, serializeFormatVersion), 344 343 tr("File Format Error"), … … 361 360 // FIXME be more specific 362 361 ex.printStackTrace(System.out); 363 OptionPaneUtil.showMessageDialog(Main.parent,362 JOptionPane.showMessageDialog(Main.parent, 364 363 tr("Error loading file"), 365 364 tr("Error"), -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPreferenceEditor.java
r17340 r17390 1 1 package wmsplugin; 2 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 5 import java.awt.Dimension; 3 6 import java.awt.FlowLayout; 4 import org.openstreetmap.josm.Main;5 import static org.openstreetmap.josm.tools.I18n.tr;6 7 import java.awt.Dimension;8 7 import java.awt.GridBagLayout; 9 8 import java.awt.event.ActionEvent; … … 23 22 import javax.swing.table.DefaultTableModel; 24 23 25 import org.openstreetmap.josm. gui.OptionPaneUtil;24 import org.openstreetmap.josm.Main; 26 25 import org.openstreetmap.josm.gui.preferences.PreferenceDialog; 27 26 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; … … 75 74 p.add(new JLabel(tr("WMS URL")), GBC.std().insets(0,0,5,0)); 76 75 p.add(value, GBC.eol().insets(5,0,0,0).fill(GBC.HORIZONTAL)); 77 int answer = OptionPaneUtil.showConfirmationDialog(76 int answer = JOptionPane.showConfirmDialog( 78 77 gui, p, 79 78 tr("Enter a menu name and WMS URL"), … … 107 106 Integer line = listdef.getSelectedRow(); 108 107 if (line == -1) 109 OptionPaneUtil.showMessageDialog(108 JOptionPane.showMessageDialog( 110 109 gui, 111 110 tr("Please select the row to copy."),
Note:
See TracChangeset
for help on using the changeset viewer.