- Timestamp:
- 2015-11-30T23:14:56+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r8846 r9073 114 114 if (param[0].toLowerCase(Locale.ENGLISH).startsWith("-dproxy")) { 115 115 it.set(param[0]+"=xxx"); 116 // Shorten some parameters for readability concerns117 116 } else { 117 // Shorten some parameters for readability concerns 118 118 shortenParam(it, param, envJavaHome, envJavaHomeAlt); 119 119 shortenParam(it, param, propJavaHome, propJavaHomeAlt); -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r9067 r9073 384 384 } 385 385 386 386 /** 387 387 * Look, whether any object is selected. If not, select the nearest node. 388 388 * If there are no nodes in the dataset, do nothing. … … 1106 1106 return cycleList; 1107 1107 } 1108 // updateKeyModifiers(e); // already called before!1108 // updateKeyModifiers() already called before! 1109 1109 1110 1110 DataSet ds = getCurrentDataSet(); -
trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java
r8510 r9073 230 230 } 231 231 232 232 /** 233 233 * Makes a WayPoint at the projection of point P onto the track providing P is less than 234 234 * tolerance away from the track -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r9065 r9073 793 793 (int) (repeat - pos), 0, 794 794 (int) (repeat - pos + segmentLength), imgHeight, null); 795 // rest of the image fits fully on the current segment796 795 } else { 796 // rest of the image fits fully on the current segment 797 797 g.drawImage(pattern.getImage(disabled), 0, dy1, (int) (pos - spacing), dy2, 798 798 (int) (repeat - pos), 0, imgWidth, imgHeight, null); -
trunk/src/org/openstreetmap/josm/data/projection/proj/TransverseMercator.java
r8419 r9073 183 183 184 184 return new double[] { 185 /* Calculate latitude */185 /* Calculate latitude */ 186 186 phif + x2frac * x2poly * (x * x) 187 187 + x4frac * x4poly * pow(x, 4.0) -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r8906 r9073 991 991 } 992 992 993 993 /** 994 994 * The *result* depends on the current map selection state IF use_selected is true. 995 995 * -
trunk/src/org/openstreetmap/josm/gui/NotificationManager.java
r8840 r9073 57 57 private Timer hideTimer; // started when message is shown, responsible for hiding the message 58 58 private Timer pauseTimer; // makes sure, there is a small pause between two consecutive messages 59 private Timer unfreezeDelayTimer; // tiny delay before resuming the timer when mouse cursor 60 // is moved off the panel 59 private Timer unfreezeDelayTimer; // tiny delay before resuming the timer when mouse cursor is moved off the panel 61 60 private boolean running; 62 61 -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r9059 r9073 545 545 } 546 546 547 547 /** 548 548 * This simply fires up an {@link RelationEditor} for the relation shown; everything else 549 549 * is the editor's business. -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r9059 r9073 1121 1121 putValue(SMALL_ICON, ImageProvider.get("dialogs/relation", "reverse")); 1122 1122 putValue(NAME, tr("Reverse")); 1123 // Shortcut.register Shortcut("relationeditor:reverse", tr("Relation Editor: Reverse"), 1124 // KeyEvent.VK_END, Shortcut.ALT) 1123 // Shortcut.register Shortcut("relationeditor:reverse", tr("Relation Editor: Reverse"), KeyEvent.VK_END, Shortcut.ALT) 1125 1124 updateEnabledState(); 1126 1125 } … … 1570 1569 putValue(SMALL_ICON, ImageProvider.get("dialogs/relation", "downloadincompleteselected")); 1571 1570 putValue(NAME, tr("Download Members")); 1572 // Shortcut.register Shortcut("relationeditor:downloadincomplete", tr("Relation Editor: Download Members"), 1573 // KeyEvent.VK_K, Shortcut.ALT) 1571 // Shortcut.register Shortcut("relationeditor:downloadincomplete", tr("Relation Editor: Download Members"), KeyEvent.VK_K, Shortcut.ALT) 1574 1572 updateEnabledState(); 1575 1573 } -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r8840 r9073 302 302 continue; 303 303 } 304 304 // now we are sure some color will be assigned 305 305 Color color = null; 306 306 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.java
r8958 r9073 116 116 /** The value needs to end with the reference string. */ 117 117 ENDS_WITH, 118 118 /** The value needs to contain the reference string. */ 119 119 CONTAINS; 120 120 -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r9006 r9073 411 411 @Override 412 412 public void actionPerformed(ActionEvent e) { 413 414 415 413 Collection<String> t = new LinkedList<>(getToolString()); 414 ActionParser parser = new ActionParser(null); 415 // get text definition of current action 416 416 String res = parser.saveAction(act); 417 418 419 420 421 422 417 // remove the button from toolbar preferences 418 t.remove(res); 419 Main.pref.putCollection("toolbar", t); 420 Main.toolbar.refreshToolbarControl(); 421 } 422 }); 423 423 424 424 private JMenuItem configure = new JMenuItem(new AbstractAction(tr("Configure toolbar")) { -
trunk/src/org/openstreetmap/josm/gui/preferences/server/FeaturesPanel.java
r8510 r9073 99 99 MessageNotifier.start(); 100 100 } 101 // Even if they have not changed,102 101 } else { 103 // notifier should be stopped if user is no more identified enough102 // Even if they have not changed, notifier should be stopped if user is no more identified enough 104 103 if (!MessageNotifier.isUserEnoughIdentified()) { 105 104 MessageNotifier.stop(); 106 // or restarted if user is again identified and notifier was enabled in preferences107 105 } else if (enabled && !MessageNotifier.isRunning()) { 106 // or restarted if user is again identified and notifier was enabled in preferences 108 107 MessageNotifier.start(); 109 108 } -
trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java
r9059 r9073 339 339 model.updateTags(tagPaster.execute()); 340 340 } else { 341 // Paste tags from arbitrary text341 // Paste tags from arbitrary text 342 342 Map<String, String> tags = TextTagParser.readTagsFromText(buf); 343 343 if (tags == null || tags.isEmpty()) { -
trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
r8923 r9073 347 347 public Collection<FontEntry> getAdditionalFonts() { 348 348 Collection<FontEntry> def = new ArrayList<>(); 349 def.add(new FontEntry("devanagari", "", "")); // just include in fallback list 350 // font already defined in template 349 def.add(new FontEntry("devanagari", "", "")); // just include in fallback list font already defined in template 351 350 352 351 // Windows scripts: https://msdn.microsoft.com/en-us/goglobal/bb688099.aspx -
trunk/src/org/openstreetmap/josm/tools/TextTagParser.java
r8928 r9073 215 215 // tag1\tval1\ntag2\tval2\n 216 216 tags = readTagsByRegexp(buf, "[\\r\\n]+", ".*?([a-zA-Z0-9:_]+).*\\t(.*?)", false); 217 217 // try "tag\tvalue\n" format 218 218 if (tags != null) return tags; 219 219 … … 224 224 // a = b=c - this method of parsing fails intentionally 225 225 tags = readTagsByRegexp(buf, "[\\n\\t\\r]+", "(.*?)=(.*?)", true); 226 226 // try format t1=v1\n t2=v2\n ... 227 227 if (tags != null) return tags; 228 228
Note:
See TracChangeset
for help on using the changeset viewer.