Changeset 31729 in osm for applications/editors/josm
- Timestamp:
- 2015-11-04T19:50:56+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/piclayer
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/piclayer/build.xml
r31114 r31729 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <project name="PicLayer" default="dist" basedir="."> 3 <property name="commit.message" value="[josm/PicLayer] - #1 0335 add interpolation hints for the image drawing"/>3 <property name="commit.message" value="[josm/PicLayer] - #12045 add ability to localize dialog titles"/> 4 4 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 5 5 <property name="plugin.main.version" value="7817"/> -
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerPlugin.java
r30962 r31729 21 21 package org.openstreetmap.josm.plugins.piclayer; 22 22 23 import static org.openstreetmap.josm.tools.I18n.tr;24 25 23 import java.util.ArrayList; 26 24 import java.util.List; 27 28 25 import javax.swing.JOptionPane; 29 import javax.swing.UIManager;30 31 26 import org.openstreetmap.josm.Main; 32 27 import org.openstreetmap.josm.actions.JosmAction; … … 53 48 import org.openstreetmap.josm.plugins.piclayer.actions.transform.affine.TransformPointAction; 54 49 import org.openstreetmap.josm.plugins.piclayer.layer.PicLayerAbstract; 50 import static org.openstreetmap.josm.tools.I18n.tr; 55 51 56 52 /** … … 158 154 if (JOptionPane.showConfirmDialog(Main.parent, tr("Do you want to save current calibration of layer {0}?", 159 155 ((PicLayerAbstract)arg0).getPicLayerName()), 160 UIManager.getString("OptionPane.titleText"),156 tr("Select an option"), 161 157 JOptionPane.YES_NO_OPTION) == 0) 162 158 new SavePictureCalibrationAction((PicLayerAbstract) arg0).actionPerformed(null); -
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/actions/LoadPictureCalibrationAction.java
r27191 r31729 77 77 // Error 78 78 e.printStackTrace(); 79 JOptionPane.showMessageDialog(Main.parent , tr("Loading file failed: {0}", e.getMessage()) );79 JOptionPane.showMessageDialog(Main.parent , tr("Loading file failed: {0}", e.getMessage()), tr("Problem occurred"), JOptionPane.WARNING_MESSAGE); 80 80 } 81 81 } -
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/actions/LoadPictureCalibrationFromWorldAction.java
r28660 r31729 39 39 // Error 40 40 ex.printStackTrace(); 41 JOptionPane.showMessageDialog(Main.parent , tr("Loading file failed: {0}", ex.getMessage()) );41 JOptionPane.showMessageDialog(Main.parent , tr("Loading file failed: {0}", ex.getMessage()), tr("Problem occurred"), JOptionPane.WARNING_MESSAGE); 42 42 } 43 43 } -
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/actions/SavePictureCalibrationAction.java
r27191 r31729 85 85 // Error 86 86 e.printStackTrace(); 87 JOptionPane.showMessageDialog(Main.parent , tr("Saving file failed: {0}", e.getMessage()) );87 JOptionPane.showMessageDialog(Main.parent , tr("Saving file failed: {0}", e.getMessage()), tr("Problem occurred"), JOptionPane.WARNING_MESSAGE); 88 88 } 89 89 } -
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/actions/newlayer/NewLayerFromClipboardAction.java
r27149 r31729 60 60 // Failed 61 61 System.out.println( "NewLayerFromClipboardAction::actionPerformed - " + e.getMessage() ); 62 JOptionPane.showMessageDialog(null, e.getMessage() 62 JOptionPane.showMessageDialog(null, e.getMessage(), tr("Problem occurred"), JOptionPane.WARNING_MESSAGE); 63 63 return; 64 64 } -
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/actions/newlayer/NewLayerFromFileAction.java
r31114 r31729 136 136 JOptionPane.showMessageDialog(null, tr("KML calibration is in beta stage and may produce incorrectly calibrated layers!\n"+ 137 137 "Please use {0} to upload your KMLs that were calibrated incorrectly.", 138 "https://josm.openstreetmap.de/ticket/5451") );138 "https://josm.openstreetmap.de/ticket/5451"), tr("Notification"), JOptionPane.INFORMATION_MESSAGE); 139 139 for (KMLGroundOverlay overlay : kml.getGroundOverlays()) { 140 140 //TODO: zoom to whole picture, not only the last … … 158 158 // Failed 159 159 System.out.println( "NewLayerFromFileAction::actionPerformed - " + e.getMessage() ); 160 JOptionPane.showMessageDialog(null, e.getMessage() 160 JOptionPane.showMessageDialog(null, e.getMessage(), tr("Problem occurred"), JOptionPane.WARNING_MESSAGE); 161 161 } 162 162 } … … 184 184 // Failed 185 185 System.out.println( "NewLayerFromFileAction::actionPerformed - " + e.getMessage() ); 186 JOptionPane.showMessageDialog(null, e.getMessage() 186 JOptionPane.showMessageDialog(null, e.getMessage(), tr("Problem occurred"), JOptionPane.WARNING_MESSAGE); 187 187 } 188 188 } -
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/layer/PicLayerFromFile.java
r30738 r31729 216 216 "to control the autoloading of calibration files.", prefkey); 217 217 msg += "\n" + tr("Do you want to apply it ?"); 218 int answer = JOptionPane.showConfirmDialog(Main.parent, msg, tr("Load calibration file 218 int answer = JOptionPane.showConfirmDialog(Main.parent, msg, tr("Load calibration file?"), JOptionPane.YES_NO_OPTION); 219 219 if (answer == JOptionPane.YES_OPTION) { 220 220 loadcal = true;
Note:
See TracChangeset
for help on using the changeset viewer.