Changeset 17793 in josm for trunk/src/org
- Timestamp:
 - 2021-04-19T19:03:32+02:00 (5 years ago)
 - Location:
 - trunk/src/org/openstreetmap/josm
 - Files:
 - 
      
- 6 edited
 
- 
          
  actions/ShowStatusReportAction.java (modified) (2 diffs)
 - 
          
  gui/MainApplication.java (modified) (1 diff)
 - 
          
  gui/layer/geoimage/ImageDisplay.java (modified) (1 diff)
 - 
          
  gui/mappaint/DividedScale.java (modified) (1 diff)
 - 
          
  gui/preferences/plugin/PluginListPanel.java (modified) (2 diffs)
 - 
          
  gui/tagging/presets/items/Text.java (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r17700 r17793 130 130 131 131 for (String name : Arrays.asList("LANG", "LC_ALL")) { 132 String value = Utils.getSystemEnv(name);132 String value = getSystemEnv(name); 133 133 if (value != null) { 134 134 text.format("Environment variable %s: %s%n", name, value); … … 136 136 } 137 137 for (String name : Arrays.asList("file.encoding", "sun.jnu.encoding")) { 138 String value = Utils.getSystemProperty(name);138 String value = getSystemProperty(name); 139 139 if (value != null) { 140 140 text.format("System property %s: %s%n", name, value);  - 
      
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r17786 r17793 370 370 */ 371 371 public static void askUpdateJava(String updVersion, String url, String eolDate, boolean major) { 372 StringBuilder content = new StringBuilder(tr("You are running version {0} of Java.", 372 StringBuilder content = new StringBuilder(256); 373 content.append(tr("You are running version {0} of Java.", 373 374 "<b>"+getSystemProperty("java.version")+"</b>")).append("<br><br>"); 374 375 if ("Sun Microsystems Inc.".equals(getSystemProperty("java.vendor")) && !PlatformManager.getPlatform().isOpenJDK()) {  - 
      
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r17783 r17793 1013 1013 public void zoomBestFitOrOne() { 1014 1014 ImageEntry entry; 1015 ImageEntry oldEntry;1016 1015 Image image; 1017 1016 VisRect visibleRect;  - 
      
trunk/src/org/openstreetmap/josm/gui/mappaint/DividedScale.java
r17582 r17793 156 156 */ 157 157 public void consistencyTest() { 158 if (ranges. size() < 1) throw new AssertionError(ranges);158 if (ranges.isEmpty()) throw new AssertionError(ranges); 159 159 if (data.isEmpty()) throw new AssertionError(data); 160 160 if (ranges.size() != data.size()) throw new AssertionError();  - 
      
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginListPanel.java
r17785 r17793 10 10 import java.awt.event.MouseAdapter; 11 11 import java.awt.event.MouseEvent; 12 import java.util.Collections;13 12 import java.util.HashSet; 14 13 import java.util.List; … … 44 43 45 44 /** Whether the plugin list has been built up already in the UI. */ 46 private boolean pluginListInitialized = false;45 private boolean pluginListInitialized; 47 46 48 47 /**  - 
      
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Text.java
r17713 r17793 239 239 } 240 240 241 public void setValue_template(String pattern) throws SAXException { 241 public void setValue_template(String pattern) throws SAXException { // NOPMD 242 242 try { 243 243 this.valueTemplate = new TemplateParser(pattern).parse(); … … 250 250 private void setupListeners(AutoCompletingTextField textField, TaggingPresetItemGuiSupport support) { 251 251 textField.getDocument().addDocumentListener(DocumentAdapter.create(ignore -> 252 support.fireItemValueModified( Text.this, key, textField.getText())));252 support.fireItemValueModified(this, key, textField.getText()))); 253 253 254 254 if (valueTemplate != null) {  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  