### Eclipse Workspace Patch 1.0
#P JOSM
|
|
|
289 | 289 | BorderFactory.createCompoundBorder( |
290 | 290 | BorderFactory.createLineBorder(Color.GRAY), |
291 | 291 | BorderFactory.createEmptyBorder(5,5,5,5) |
292 | | ) |
293 | | )); |
| 292 | ) |
| 293 | )); |
294 | 294 | GridBagConstraints gc = new GridBagConstraints(); |
295 | 295 | gc.anchor = GridBagConstraints.NORTHWEST; |
296 | 296 | gc.fill = GridBagConstraints.HORIZONTAL; |
… |
… |
|
427 | 427 | BorderFactory.createCompoundBorder( |
428 | 428 | BorderFactory.createLineBorder(Color.GRAY), |
429 | 429 | BorderFactory.createEmptyBorder(5,5,5,5) |
430 | | ) |
431 | | )); |
| 430 | ) |
| 431 | )); |
432 | 432 | |
433 | 433 | ItemListener userRestrictionChangeHandler = new UserRestrictionChangedHandler(); |
434 | 434 | GridBagConstraints gc = new GridBagConstraints(); |
… |
… |
|
492 | 492 | |
493 | 493 | public void startUserInput() { |
494 | 494 | if (JosmUserIdentityManager.getInstance().isAnonymous()) { |
495 | | lblRestrictedToMyself.setText("Only changesets owned by myself (disabled. JOSM is currently run by an anonymous user)"); |
| 495 | lblRestrictedToMyself.setText(tr("Only changesets owned by myself (disabled. JOSM is currently run by an anonymous user)")); |
496 | 496 | rbRestrictToMyself.setEnabled(false); |
497 | 497 | if (rbRestrictToMyself.isSelected()) { |
498 | 498 | rbRestrictToUid.setSelected(true); |
499 | 499 | } |
500 | 500 | } else { |
501 | | lblRestrictedToMyself.setText("Only changesets owned by myself"); |
| 501 | lblRestrictedToMyself.setText(tr("Only changesets owned by myself")); |
502 | 502 | rbRestrictToMyself.setEnabled(true); |
503 | 503 | rbRestrictToMyself.setSelected(true); |
504 | 504 | } |
… |
… |
|
554 | 554 | tr("Invalid user ID"), |
555 | 555 | JOptionPane.ERROR_MESSAGE, |
556 | 556 | HelpUtil.ht("/Dialog/ChangesetQueryDialog#InvalidUserId") |
557 | | ); |
| 557 | ); |
558 | 558 | } |
559 | 559 | |
560 | 560 | protected void alertInvalidUserName() { |
… |
… |
|
564 | 564 | tr("Invalid user name"), |
565 | 565 | JOptionPane.ERROR_MESSAGE, |
566 | 566 | HelpUtil.ht("/Dialog/ChangesetQueryDialog#InvalidUserName") |
567 | | ); |
| 567 | ); |
568 | 568 | } |
569 | 569 | |
570 | 570 | public void displayMessageIfInvalid() { |
… |
… |
|
747 | 747 | BorderFactory.createCompoundBorder( |
748 | 748 | BorderFactory.createLineBorder(Color.GRAY), |
749 | 749 | BorderFactory.createEmptyBorder(5,5,5,5) |
750 | | ) |
751 | | )); |
| 750 | ) |
| 751 | )); |
752 | 752 | |
753 | 753 | // -- changesets closed after a specific date/time |
754 | 754 | // |
… |
… |
|
811 | 811 | return valClosedAfterDate1.isValid() && valClosedAfterTime1.isValid(); |
812 | 812 | else if (rbClosedAfterAndCreatedBefore.isSelected()) |
813 | 813 | return valClosedAfterDate2.isValid() && valClosedAfterTime2.isValid() |
814 | | && valCreatedBeforeDate.isValid() && valCreatedBeforeTime.isValid(); |
| 814 | && valCreatedBeforeDate.isValid() && valCreatedBeforeTime.isValid(); |
815 | 815 | // should not happen |
816 | 816 | return true; |
817 | 817 | } |
… |
… |
|
863 | 863 | this, |
864 | 864 | tr( |
865 | 865 | "<html>Please enter valid date/time values to restrict<br>" |
866 | | + "the query to a specific time range.</html>" |
867 | | ), |
868 | | tr("Invalid date/time values"), |
869 | | JOptionPane.ERROR_MESSAGE, |
870 | | HelpUtil.ht("/Dialog/ChangesetQueryDialog#InvalidDateTimeValues") |
871 | | ); |
| 866 | + "the query to a specific time range.</html>" |
| 867 | ), |
| 868 | tr("Invalid date/time values"), |
| 869 | JOptionPane.ERROR_MESSAGE, |
| 870 | HelpUtil.ht("/Dialog/ChangesetQueryDialog#InvalidDateTimeValues") |
| 871 | ); |
872 | 872 | } |
873 | 873 | |
874 | 874 | |
… |
… |
|
929 | 929 | BorderFactory.createCompoundBorder( |
930 | 930 | BorderFactory.createLineBorder(Color.GRAY), |
931 | 931 | BorderFactory.createEmptyBorder(5,5,5,5) |
932 | | ) |
933 | | )); |
| 932 | ) |
| 933 | )); |
934 | 934 | } |
935 | 935 | |
936 | 936 | public boolean isValidChangesetQuery() { |
… |
… |
|
949 | 949 | this, |
950 | 950 | tr( |
951 | 951 | "<html>Please enter valid longitude/latitude values to restrict<br>" + |
952 | | "the changeset query to a specific bounding box.</html>" |
953 | | ), |
954 | | tr("Invalid bounding box"), |
955 | | JOptionPane.ERROR_MESSAGE, |
956 | | HelpUtil.ht("/Dialog/ChangesetQueryDialog#InvalidBoundingBox") |
957 | | ); |
| 952 | "the changeset query to a specific bounding box.</html>" |
| 953 | ), |
| 954 | tr("Invalid bounding box"), |
| 955 | JOptionPane.ERROR_MESSAGE, |
| 956 | HelpUtil.ht("/Dialog/ChangesetQueryDialog#InvalidBoundingBox") |
| 957 | ); |
958 | 958 | } |
959 | 959 | } |
960 | 960 | |
… |
… |
|
1061 | 1061 | public String getStandardTooltipText() { |
1062 | 1062 | return tr( |
1063 | 1063 | "Please enter a date in the usual format for your locale.<br>" |
1064 | | + "Example: {0}<br>" |
1065 | | + "Example: {1}<br>" |
1066 | | + "Example: {2}<br>" |
1067 | | + "Example: {3}<br>", |
1068 | | DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()).format(new Date()), |
1069 | | DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault()).format(new Date()), |
1070 | | DateFormat.getDateInstance(DateFormat.LONG, Locale.getDefault()).format(new Date()), |
1071 | | DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault()).format(new Date()) |
1072 | | ); |
| 1064 | + "Example: {0}<br>" |
| 1065 | + "Example: {1}<br>" |
| 1066 | + "Example: {2}<br>" |
| 1067 | + "Example: {3}<br>", |
| 1068 | DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()).format(new Date()), |
| 1069 | DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault()).format(new Date()), |
| 1070 | DateFormat.getDateInstance(DateFormat.LONG, Locale.getDefault()).format(new Date()), |
| 1071 | DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault()).format(new Date()) |
| 1072 | ); |
1073 | 1073 | } |
1074 | 1074 | |
1075 | 1075 | @Override |
… |
… |
|
1125 | 1125 | public String getStandardTooltipText() { |
1126 | 1126 | return tr( |
1127 | 1127 | "Please enter a valid time in the usual format for your locale.<br>" |
1128 | | + "Example: {0}<br>" |
1129 | | + "Example: {1}<br>" |
1130 | | + "Example: {2}<br>" |
1131 | | + "Example: {3}<br>", |
1132 | | DateFormat.getTimeInstance(DateFormat.SHORT, Locale.getDefault()).format(new Date()), |
1133 | | DateFormat.getTimeInstance(DateFormat.MEDIUM, Locale.getDefault()).format(new Date()), |
1134 | | DateFormat.getTimeInstance(DateFormat.LONG, Locale.getDefault()).format(new Date()), |
1135 | | DateFormat.getTimeInstance(DateFormat.FULL, Locale.getDefault()).format(new Date()) |
1136 | | ); |
| 1128 | + "Example: {0}<br>" |
| 1129 | + "Example: {1}<br>" |
| 1130 | + "Example: {2}<br>" |
| 1131 | + "Example: {3}<br>", |
| 1132 | DateFormat.getTimeInstance(DateFormat.SHORT, Locale.getDefault()).format(new Date()), |
| 1133 | DateFormat.getTimeInstance(DateFormat.MEDIUM, Locale.getDefault()).format(new Date()), |
| 1134 | DateFormat.getTimeInstance(DateFormat.LONG, Locale.getDefault()).format(new Date()), |
| 1135 | DateFormat.getTimeInstance(DateFormat.FULL, Locale.getDefault()).format(new Date()) |
| 1136 | ); |
1137 | 1137 | } |
1138 | 1138 | |
1139 | 1139 | @Override |