Changeset 7238 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
- Timestamp:
- 2014-06-10T13:02:24+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r7237 r7238 467 467 468 468 /** 469 * Obtains the JOSM'key {@link org.openstreetmap.josm.data.Preferences} color for key {@code key},470 * and defaults to {@code def} if that is null.471 * @see org.openstreetmap.josm.data.Preferences#getColor(String, java.awt.Color)472 */473 public static Color JOSM_pref_color(String key, Color def) {474 Color res = Main.pref.getColor(key, null);475 return res != null ? res : def;476 }477 478 /**479 469 * Tests if string {@code target} matches pattern {@code pattern} 480 470 * @see Pattern#matches(String, CharSequence) … … 642 632 * @return the same object, unchanged 643 633 */ 634 @NullableArguments 644 635 public static Object print(Object o) { 645 636 System.out.print(o == null ? "none" : o.toString()); … … 653 644 * @return the same object, unchanged 654 645 */ 646 @NullableArguments 655 647 public static Object println(Object o) { 656 648 System.out.println(o == null ? "none" : o.toString());
Note:
See TracChangeset
for help on using the changeset viewer.