source: josm/trunk/src/org/openstreetmap/josm/gui/io/IUploadDialog.java@ 17041

Last change on this file since 17041 was 14977, checked in by Don-vip, 5 years ago

ensures consistency of upload comment:

  • fix #11168 - ctrl-z/undo could reset unwanted old changeset comment
  • fix #13474 - selecting "new changeset" after having entered a changeset comment did reset it to the previous value
  • fix #17452 - ctrl-enter while typing a changeset comment did upload with the previous value
  • fix behaviour of upload.comment.max-age: values were reset after 5 months instead of intended 4 hours because seconds were compared to milliseconds
  • avoid creation of unneeded undo/redo internal classes for non-editable text fields
  • ensures consistency of upload dialog if upload.comment properties are modified manually from advanced preferences
  • add a source attribute to preference events to know which class modified the preference entry
  • refactor reflection utils
  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.io;
3
4import java.util.Map;
5
6import org.openstreetmap.josm.io.UploadStrategySpecification;
7
8/**
9 * Upload dialog super interface.
10 * @since 9685
11 */
12public interface IUploadDialog {
13
14 /**
15 * Returns true if the dialog was canceled
16 *
17 * @return true if the dialog was canceled
18 */
19 boolean isCanceled();
20
21 /**
22 * Remembers the user input in the preference settings
23 */
24 void rememberUserInput();
25
26 /**
27 * Returns the current value for the upload comment
28 *
29 * @return the current value for the upload comment
30 */
31 String getUploadComment();
32
33 /**
34 * Returns the current value for the changeset source
35 *
36 * @return the current value for the changeset source
37 */
38 String getUploadSource();
39
40 /**
41 * Replies the {@link UploadStrategySpecification} the user entered in the dialog.
42 *
43 * @return the {@link UploadStrategySpecification} the user entered in the dialog.
44 */
45 UploadStrategySpecification getUploadStrategySpecification();
46
47 /**
48 * Replies the map with the current tags in the tag editor model.
49 * @param keepEmpty {@code true} to keep empty tags
50 * @return the map with the current tags in the tag editor model.
51 */
52 Map<String, String> getTags(boolean keepEmpty);
53
54 /**
55 * Handles missing comment.
56 */
57 void handleMissingComment();
58
59 /**
60 * Handles missing source.
61 */
62 void handleMissingSource();
63
64 /**
65 * Handles illegal chunk size.
66 */
67 void handleIllegalChunkSize();
68
69 /**
70 * Forces update of comment/source model if matching text field is active.
71 * @since 14977
72 */
73 void forceUpdateActiveField();
74}
Note: See TracBrowser for help on using the repository browser.