Last active
December 19, 2015 08:29
-
-
Save suxiaogang/5926528 to your computer and use it in GitHub Desktop.
ProgressMonitorDialog.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ProgressMonitorDialog progress = new ProgressMonitorDialog(null); | |
try { | |
progress.run(false, true, new IRunnableWithProgress() { | |
@Override | |
public void run(IProgressMonitor monitor) { | |
monitor.beginTask("WORK NAME", IProgressMonitor.UNKNOWN); | |
try { | |
//do something | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} finally { | |
monitor.done(); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment