svn commit: r17374 - trunk/src/argouml-app/src/org/argouml/ui/ProgressMonitorWindow.java
Bob Tarling <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: bobtarling Date: 2009-10-06 15:05:25-0700 New Revision: 17374 Modified: trunk/src/argouml-app/src/org/argouml/ui/ProgressMonitorWindow.java Log: Deprecate for visibility change and add some comments Modified: trunk/src/argouml-app/src/org/argouml/ui/ProgressMonitorWindow.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/ProgressMonitorWindow.java?view=diff&pathrev=17374&r1=17373&r2=17374 ============================================================================== --- trunk/src/argouml-app/src/org/argouml/ui/ProgressMonitorWindow.java (original) +++ trunk/src/argouml-app/src/org/argouml/ui/ProgressMonitorWindow.java 2009-10-06 15:05:25-0700 @@ -43,6 +43,12 @@ * maintain GUI independence. * * @author [email protected] + * @deprecated in 0.29.1 This is only a helper class for save/load and will + * become package scope. It is not designed for reuse outside this package. + * + * TODO: Bob says: I don't like the naming of this class. Its confusing that + * its called ...Window and yet it is not a window. Lets rename once we have + * it hidden. */ public class ProgressMonitorWindow implements org.argouml.taskmgmt.ProgressMonitor { @@ -59,13 +65,29 @@ pbar = new ProgressMonitor(parent, title, null, 0, 100); - pbar.setMillisToDecideToPopup(250); + pbar.setMillisToDecideToPopup(250); pbar.setMillisToPopup(500); parent.repaint(); updateProgress(5); } + /** + * initializes a ProgressMonitor + * + * @param parent the Component to be set as parent + * @param progressMonitor the ProgressMonitor + */ + public ProgressMonitorWindow( + final Frame parent, + final ProgressMonitor progressMonitor) { + pbar = progressMonitor; + pbar.setMillisToDecideToPopup(250); + pbar.setMillisToPopup(500); + parent.repaint(); + updateProgress(5); + } + /* * Report a progress to the ProgressMonitor window. * @see org.argouml.persistence.ProgressListener#progress(org.argouml.persistence.ProgressEvent) ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2404292 To unsubscribe from this discussion, e-mail: [[email protected]].