Changeset 12675 in josm for trunk/src/org
- Timestamp:
- 2017-08-27T18:12:20+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 added
- 20 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadAlongAction.java
r10074 r12675 19 19 import org.openstreetmap.josm.Main; 20 20 import org.openstreetmap.josm.actions.downloadtasks.DownloadTaskList; 21 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;22 21 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 22 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 23 23 import org.openstreetmap.josm.tools.GBC; 24 24 import org.openstreetmap.josm.tools.Shortcut; -
trunk/src/org/openstreetmap/josm/actions/JosmAction.java
r12639 r12675 26 26 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeEvent; 27 27 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeListener; 28 import org.openstreetmap.josm.gui.progress. PleaseWaitProgressMonitor;28 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 29 29 import org.openstreetmap.josm.tools.Destroyable; 30 30 import org.openstreetmap.josm.tools.ImageProvider; -
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r12634 r12675 42 42 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 43 43 import org.openstreetmap.josm.gui.MainApplication; 44 import org.openstreetmap.josm.gui.progress. PleaseWaitProgressMonitor;44 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 45 45 import org.openstreetmap.josm.gui.widgets.HistoryComboBox; 46 46 import org.openstreetmap.josm.tools.GBC; -
trunk/src/org/openstreetmap/josm/actions/UpdateDataAction.java
r12581 r12675 16 16 import org.openstreetmap.josm.data.DataSource; 17 17 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 18 import org.openstreetmap.josm.gui.progress. PleaseWaitProgressMonitor;18 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 19 19 import org.openstreetmap.josm.io.OnlineResource; 20 20 import org.openstreetmap.josm.tools.Shortcut; -
trunk/src/org/openstreetmap/josm/actions/UploadNotesAction.java
r12636 r12675 10 10 import org.openstreetmap.josm.data.osm.NoteData; 11 11 import org.openstreetmap.josm.gui.layer.NoteLayer; 12 import org.openstreetmap.josm.gui.progress. PleaseWaitProgressMonitor;12 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 13 13 import org.openstreetmap.josm.tools.ImageProvider; 14 14 import org.openstreetmap.josm.tools.Logging; -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r12670 r12675 91 91 import org.openstreetmap.josm.gui.preferences.server.OAuthAccessTokenHolder; 92 92 import org.openstreetmap.josm.gui.preferences.server.ProxyPreference; 93 import org.openstreetmap.josm.gui.progress. ProgressMonitorExecutor;93 import org.openstreetmap.josm.gui.progress.swing.ProgressMonitorExecutor; 94 94 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets; 95 95 import org.openstreetmap.josm.gui.util.GuiHelper; -
trunk/src/org/openstreetmap/josm/gui/MainPanel.java
r12638 r12675 14 14 import org.openstreetmap.josm.gui.layer.MainLayerManager.LayerAvailabilityEvent; 15 15 import org.openstreetmap.josm.gui.layer.MainLayerManager.LayerAvailabilityListener; 16 import org.openstreetmap.josm.gui.progress. PleaseWaitProgressMonitor;16 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 17 17 import org.openstreetmap.josm.gui.util.GuiHelper; 18 18 -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r12674 r12675 71 71 import org.openstreetmap.josm.data.preferences.DoubleProperty; 72 72 import org.openstreetmap.josm.gui.help.Helpful; 73 import org.openstreetmap.josm.gui.progress. PleaseWaitProgressMonitor;74 import org.openstreetmap.josm.gui.progress. PleaseWaitProgressMonitor.ProgressMonitorDialog;73 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 74 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.ProgressMonitorDialog; 75 75 import org.openstreetmap.josm.gui.util.GuiHelper; 76 76 import org.openstreetmap.josm.gui.widgets.ImageLabel; -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitDialog.java
r12285 r12675 21 21 22 22 import org.openstreetmap.josm.Main; 23 import org.openstreetmap.josm.gui.progress. PleaseWaitProgressMonitor.ProgressMonitorDialog;23 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.ProgressMonitorDialog; 24 24 import org.openstreetmap.josm.gui.util.GuiHelper; 25 25 import org.openstreetmap.josm.gui.widgets.JosmTextArea; -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r11801 r12675 9 9 import javax.swing.SwingUtilities; 10 10 11 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;12 11 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 13 12 import org.openstreetmap.josm.gui.progress.ProgressMonitor.CancelListener; 13 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 14 14 import org.openstreetmap.josm.gui.progress.ProgressTaskId; 15 15 import org.openstreetmap.josm.io.OsmTransferException; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java
r12663 r12675 39 39 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 40 40 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 41 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;42 41 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 42 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 43 43 import org.openstreetmap.josm.io.OsmApi; 44 44 import org.openstreetmap.josm.io.OsmApiException; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/DownloadRelationMemberTask.java
r12663 r12675 21 21 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 22 22 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 23 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;24 23 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 24 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 25 25 import org.openstreetmap.josm.io.MultiFetchServerObjectReader; 26 26 import org.openstreetmap.josm.io.OsmTransferException; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ParentRelationLoadingTask.java
r12636 r12675 18 18 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 19 19 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 20 import org.openstreetmap.josm.gui.progress. PleaseWaitProgressMonitor;20 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 21 21 import org.openstreetmap.josm.io.OsmApi; 22 22 import org.openstreetmap.josm.io.OsmServerBackreferenceReader; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ReferringRelationsBrowser.java
r12634 r12675 26 26 import org.openstreetmap.josm.gui.OsmPrimitivRenderer; 27 27 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 28 import org.openstreetmap.josm.gui.progress. PleaseWaitProgressMonitor;28 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 29 29 import org.openstreetmap.josm.tools.ImageProvider; 30 30 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationTree.java
r12672 r12675 21 21 import org.openstreetmap.josm.gui.MainApplication; 22 22 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 23 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;24 23 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 24 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 25 25 import org.openstreetmap.josm.io.OsmApi; 26 26 import org.openstreetmap.josm.io.OsmServerObjectReader; -
trunk/src/org/openstreetmap/josm/gui/io/AbstractPrimitiveTask.java
r12630 r12675 18 18 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 19 19 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 20 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;21 20 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 21 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 22 22 import org.openstreetmap.josm.gui.util.GuiHelper; 23 23 import org.openstreetmap.josm.io.MultiFetchServerObjectReader; -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
r12620 r12675 50 50 import org.openstreetmap.josm.gui.layer.Layer; 51 51 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 52 import org.openstreetmap.josm.gui.progress. SwingRenderingProgressMonitor;52 import org.openstreetmap.josm.gui.progress.swing.SwingRenderingProgressMonitor; 53 53 import org.openstreetmap.josm.gui.util.GuiHelper; 54 54 import org.openstreetmap.josm.tools.GBC; -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r12672 r12675 99 99 import org.openstreetmap.josm.gui.io.importexport.OsmImporter; 100 100 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 101 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;102 101 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 102 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 103 103 import org.openstreetmap.josm.gui.util.GuiHelper; 104 104 import org.openstreetmap.josm.gui.widgets.FileChooserManager; -
trunk/src/org/openstreetmap/josm/gui/progress/AbstractProgressMonitor.java
r12369 r12675 27 27 private final CancelHandler cancelHandler; 28 28 29 protected enum State { 29 /** 30 * Progress monitor state 31 * @since 12675 (visibility) 32 */ 33 public enum State { 34 /** Initialization. Next valid states are {@link #IN_TASK} or {@link #FINISHED} */ 30 35 INIT, 36 /** In task. Next valid states are {@link #IN_SUBTASK} or {@link #FINISHED} */ 31 37 IN_TASK, 38 /** In subtask. Next valid states is {@link #IN_TASK} */ 32 39 IN_SUBTASK, 40 /** Finished. Can't change state after that */ 33 41 FINISHED 34 42 } -
trunk/src/org/openstreetmap/josm/gui/progress/ProgressRenderer.java
r12369 r12675 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.progress; 3 4 import org.openstreetmap.josm.gui.progress.swing.SwingRenderingProgressMonitor; 3 5 4 6 /** -
trunk/src/org/openstreetmap/josm/gui/progress/swing/PleaseWaitProgressMonitor.java
r12674 r12675 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.gui.progress ;2 package org.openstreetmap.josm.gui.progress.swing; 3 3 4 4 import java.awt.Component; … … 16 16 import org.openstreetmap.josm.gui.MapStatus.BackgroundProgressMonitor; 17 17 import org.openstreetmap.josm.gui.PleaseWaitDialog; 18 import org.openstreetmap.josm.gui.progress.AbstractProgressMonitor; 19 import org.openstreetmap.josm.gui.progress.CancelHandler; 20 import org.openstreetmap.josm.gui.progress.ProgressException; 21 import org.openstreetmap.josm.gui.progress.ProgressTaskId; 18 22 import org.openstreetmap.josm.gui.util.GuiHelper; 19 23 import org.openstreetmap.josm.tools.bugreport.BugReport; … … 23 27 * <p> 24 28 * Progress is displayed in a dialog window ({@link PleaseWaitDialog}). 29 * @since 12675 (moved from {@code gui.progress} package} 25 30 */ 26 31 public class PleaseWaitProgressMonitor extends AbstractProgressMonitor { -
trunk/src/org/openstreetmap/josm/gui/progress/swing/ProgressMonitorExecutor.java
r12674 r12675 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.gui.progress ;2 package org.openstreetmap.josm.gui.progress.swing; 3 3 4 4 import java.util.concurrent.LinkedBlockingQueue; … … 13 13 * Similar to Executors.newSingleThreadExecutor(), but displays the 14 14 * progress monitor whenever a new task is executed. 15 * @since 12675 (moved from {@code gui.progress} package} 15 16 */ 16 17 public class ProgressMonitorExecutor extends ThreadPoolExecutor { -
trunk/src/org/openstreetmap/josm/gui/progress/swing/SwingRenderingProgressMonitor.java
r12674 r12675 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.gui.progress ;2 package org.openstreetmap.josm.gui.progress.swing; 3 3 4 4 import java.awt.Component; 5 5 6 6 import org.openstreetmap.josm.Main; 7 import org.openstreetmap.josm.gui.progress.AbstractProgressMonitor; 8 import org.openstreetmap.josm.gui.progress.CancelHandler; 9 import org.openstreetmap.josm.gui.progress.ProgressRenderer; 10 import org.openstreetmap.josm.gui.progress.ProgressTaskId; 7 11 import org.openstreetmap.josm.gui.util.GuiHelper; 8 12 import org.openstreetmap.josm.tools.CheckParameterUtil; … … 12 16 * of progress information to a {@link ProgressRenderer}. 13 17 * Methods of the progress renderer are always called on the Swing EDT. 14 * 18 * @since 12675 (moved from {@code gui.progress} package} 15 19 */ 16 20 public class SwingRenderingProgressMonitor extends AbstractProgressMonitor {
Note:
See TracChangeset
for help on using the changeset viewer.