- Timestamp:
- 2010-06-04T22:36:15+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r3288 r3310 513 513 514 514 JButton buttonAutoGuess = new JButton(tr("Auto-Guess")); 515 buttonAutoGuess.setToolTipText(tr("Matches first photo with first gpx point")); 515 516 buttonAutoGuess.addActionListener(new AutoGuessActionListener()); 516 517 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r3263 r3310 238 238 Main.map.mapView.addPropertyChangeListener(layer); 239 239 if (Main.map.getToggleDialog(ImageViewerDialog.class) == null) { 240 System.err.println("JO"); 241 ImageViewerDialog.newInstance();// = new ImageViewerDialog(); 240 ImageViewerDialog.newInstance(); 242 241 Main.map.addToggleDialog(ImageViewerDialog.getInstance()); 243 242 } -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java
r3215 r3310 20 20 import javax.swing.text.StyleConstants; 21 21 22 import org.openstreetmap.josm.Main; 23 22 24 /** 23 25 * @author guilhem.bonnefille@gmail.com … … 69 71 70 72 // if the text starts with a number we don't autocomplete 71 // 72 try { 73 Long.parseLong(str); 74 if (curText.length() == 0) { 75 // we don't autocomplete on numbers 73 if (Main.pref.getBoolean("autocomplete.dont_complete_numbers", false)) { 74 try { 75 Long.parseLong(str); 76 if (curText.length() == 0) { 77 // we don't autocomplete on numbers 78 return; 79 } 80 Long.parseLong(curText); 76 81 return; 77 } 78 Long.parseLong(curText); 79 return; 80 } catch (NumberFormatException e) { 81 // either the new text or the current text isn't a number. We continue with 82 // autocompletion 82 } catch (NumberFormatException e) { 83 // either the new text or the current text isn't a number. We continue with 84 // autocompletion 85 } 83 86 } 84 87 -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingTextField.java
r3215 r3310 21 21 import javax.swing.text.StyleConstants; 22 22 23 import org.openstreetmap.josm.Main; 23 24 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList; 24 25 import org.openstreetmap.josm.gui.util.TableCellEditorSupport; … … 71 72 String currentText = getText(0, getLength()); 72 73 // if the text starts with a number we don't autocomplete 73 // 74 try { 75 Long.parseLong(str); 76 if (currentText.length() == 0) { 77 // we don't autocomplete on numbers 74 if (Main.pref.getBoolean("autocomplete.dont_complete_numbers", false)) { 75 try { 76 Long.parseLong(str); 77 if (currentText.length() == 0) { 78 // we don't autocomplete on numbers 79 super.insertString(offs, str, a); 80 return; 81 } 82 Long.parseLong(currentText); 78 83 super.insertString(offs, str, a); 79 84 return; 85 } catch(NumberFormatException e) { 86 // either the new text or the current text isn't a number. We continue with 87 // autocompletion 80 88 } 81 Long.parseLong(currentText);82 super.insertString(offs, str, a);83 return;84 } catch(NumberFormatException e) {85 // either the new text or the current text isn't a number. We continue with86 // autocompletion87 89 } 88 90 String prefix = currentText.substring(0, offs);
Note:
See TracChangeset
for help on using the changeset viewer.