Changeset 4762 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-01-04T08:43:23+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/progress
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/progress/ChildProgress.java
r4718 r4762 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.progress; 3 4 import java.awt.Component; 3 5 4 6 public class ChildProgress extends AbstractProgressMonitor { … … 65 67 return parent.getProgressTaskId(); 66 68 } 69 70 @Override 71 public Component getWindowParent() { 72 return parent.getWindowParent(); 73 } 67 74 } -
trunk/src/org/openstreetmap/josm/gui/progress/NullProgressMonitor.java
r4718 r4762 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.progress; 3 4 import java.awt.Component; 5 6 import org.openstreetmap.josm.Main; 3 7 4 8 public class NullProgressMonitor implements ProgressMonitor { … … 89 93 return null; 90 94 } 95 96 @Override 97 public Component getWindowParent() { 98 return Main.parent; 99 } 91 100 } -
trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java
r4761 r4762 322 322 } 323 323 324 325 @Override 326 public Component getWindowParent() { 327 Component parent = dialog; 328 if (isInBackground || parent == null) 329 return Main.parent; 330 else 331 return parent; 332 } 324 333 } -
trunk/src/org/openstreetmap/josm/gui/progress/ProgressMonitor.java
r4718 r4762 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.progress; 3 4 import java.awt.Component; 3 5 4 6 /** … … 140 142 */ 141 143 ProgressTaskId getProgressTaskId(); 144 145 /** 146 * 147 * @return component suitable as parent for dialogs that wants to be shown in front of progress dialog 148 */ 149 Component getWindowParent(); 142 150 } -
trunk/src/org/openstreetmap/josm/gui/progress/SwingRenderingProgressMonitor.java
r4758 r4762 2 2 package org.openstreetmap.josm.gui.progress; 3 3 4 import java.awt.Component; 5 4 6 import javax.swing.SwingUtilities; 5 7 8 import org.openstreetmap.josm.Main; 6 9 import org.openstreetmap.josm.tools.CheckParameterUtil; 7 10 … … 102 105 return null; 103 106 } 107 108 @Override 109 public Component getWindowParent() { 110 return Main.parent; 111 } 104 112 }
Note:
See TracChangeset
for help on using the changeset viewer.