Changeset 16696 in josm
- Timestamp:
- 2020-06-21T14:08:23+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java
r16673 r16696 35 35 import org.openstreetmap.josm.gui.MainApplication; 36 36 import org.openstreetmap.josm.gui.io.UploadTextComponentValidator.UploadAreaValidator; 37 import org.openstreetmap.josm.gui.io.UploadTextComponentValidator.UploadCommentValidator; 38 import org.openstreetmap.josm.gui.io.UploadTextComponentValidator.UploadSourceValidator; 37 39 import org.openstreetmap.josm.gui.widgets.HistoryComboBox; 38 40 import org.openstreetmap.josm.gui.widgets.JMultilineLabel; … … 78 80 private final transient ChangesetCommentModel changesetSourceModel; 79 81 private final transient ChangesetReviewModel changesetReviewModel; 82 private final transient JLabel uploadCommentFeedback = new JLabel(); 83 private final transient UploadCommentValidator uploadCommentValidator = new UploadCommentValidator( 84 hcbUploadComment.getEditorComponent(), uploadCommentFeedback); 85 private final transient JLabel hcbUploadSourceFeedback = new JLabel(); 86 private final transient UploadSourceValidator uploadSourceValidator = new UploadSourceValidator( 87 hcbUploadSource.getEditorComponent(), hcbUploadSourceFeedback); 80 88 81 89 protected JPanel buildUploadCommentPanel() { … … 90 98 hcbUploadComment.getEditorComponent().addFocusListener(commentModelListener); 91 99 pnl.add(hcbUploadComment, GBC.eol().fill(GBC.HORIZONTAL)); 92 JLabel hcbUploadCommentFeedback = new JLabel(); 93 pnl.add(hcbUploadCommentFeedback, GBC.eol().insets(0, 3, 0, 0).fill(GBC.HORIZONTAL)); 94 new UploadTextComponentValidator.UploadCommentValidator(hcbUploadComment.getEditorComponent(), hcbUploadCommentFeedback); 100 pnl.add(uploadCommentFeedback, GBC.eol().insets(0, 3, 0, 0).fill(GBC.HORIZONTAL)); 95 101 return pnl; 96 102 } … … 129 135 hcbUploadSource.getEditorComponent().addFocusListener(sourceModelListener); 130 136 pnl.add(hcbUploadSource, GBC.eol().fill(GBC.HORIZONTAL)); 131 JLabel hcbUploadSourceFeedback = new JLabel();132 137 pnl.add(hcbUploadSourceFeedback, GBC.eol().insets(0, 3, 0, 0).fill(GBC.HORIZONTAL)); 133 new UploadTextComponentValidator.UploadSourceValidator(hcbUploadSource.getEditorComponent(), hcbUploadSourceFeedback);134 138 if (obtainSourceAutomatically.isSelected()) { 135 139 automaticallyAddSource(); … … 264 268 hcbUploadComment.requestFocusInWindow(); 265 269 hcbUploadComment.getEditorComponent().requestFocusInWindow(); 270 uploadCommentValidator.validate(); 271 uploadSourceValidator.validate(); 266 272 } 267 273
Note:
See TracChangeset
for help on using the changeset viewer.