- Timestamp:
- 2009-06-07T10:10:06+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DiskAccessAction.java
r1646 r1648 46 46 File file = fc.getSelectedFile(); 47 47 if (file == null || (file.exists() && 1 != 48 new ExtendedDialog(Main.parent, 49 tr("Overwrite"), 48 new ExtendedDialog(Main.parent, 49 tr("Overwrite"), 50 50 tr("File exists. Overwrite?"), 51 new String[] {tr("Overwrite"), tr("Cancel")}, 51 new String[] {tr("Overwrite"), tr("Cancel")}, 52 52 new String[] {"save_as.png", "cancel.png"}).getValue())) 53 53 return null; -
trunk/src/org/openstreetmap/josm/actions/SaveAction.java
r1646 r1648 7 7 import java.io.File; 8 8 9 import org.openstreetmap.josm.Main; 9 10 import org.openstreetmap.josm.gui.layer.Layer; 11 import org.openstreetmap.josm.gui.layer.GpxLayer; 12 import org.openstreetmap.josm.gui.ExtendedDialog; 10 13 import org.openstreetmap.josm.tools.Shortcut; 11 14 … … 28 31 @Override public File getFile(Layer layer) { 29 32 File f = layer.getAssociatedFile(); 33 if(f != null && layer instanceof GpxLayer && f.exists() && 1 != 34 new ExtendedDialog(Main.parent, tr("Overwrite"), 35 tr("File {0} exists. Overwrite?", f.getName()), 36 new String[] {tr("Overwrite"), tr("Cancel")}, 37 new String[] {"save_as.png", "cancel.png"}).getValue()) 38 f = null; 30 39 return f == null ? openFileDialog(layer) : f; 31 40 } -
trunk/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
r1415 r1648 70 70 private void configureSites() { 71 71 JPanel p = new JPanel(new GridBagLayout()); 72 p.add(new JLabel(tr("Add either site-josm.xml or Wiki Pages.")), GBC.eol());72 p.add(new JLabel(tr("Add JOSM Plugin description URL.")), GBC.eol()); 73 73 final DefaultListModel model = new DefaultListModel(); 74 74 for (String s : PluginDownloader.getSites()) … … 79 79 buttons.add(new JButton(new AbstractAction(tr("Add")){ 80 80 public void actionPerformed(ActionEvent e) { 81 String s = JOptionPane.showInputDialog(gui, tr("Add either site-josm.xml or Wiki Pages."));81 String s = JOptionPane.showInputDialog(gui, tr("Add JOSM Plugin description URL.")); 82 82 if (s != null) 83 83 model.addElement(s); … … 90 90 return; 91 91 } 92 String s = JOptionPane.showInputDialog(gui, tr(" Add either site-josm.xml or Wiki Pages."), list.getSelectedValue());92 String s = JOptionPane.showInputDialog(gui, tr("Edit JOSM Plugin description URL."), list.getSelectedValue()); 93 93 model.setElementAt(s, list.getSelectedIndex()); 94 94 }
Note:
See TracChangeset
for help on using the changeset viewer.