MCPcopy Create free account
hub / github.com/boazy/TWEditorEnhanced / updateProgress

Method updateProgress

src/main/java/ProgressDialog.java:54–66  ·  view source on GitHub ↗
(int progress)

Source from the content-addressed store, hash-verified

52 }
53
54 public void updateProgress(int progress)
55 {
56 if (SwingUtilities.isEventDispatchThread()) {
57 this.progressBar.setValue(progress);
58 } else {
59 this.deferredProgress = progress;
60 SwingUtilities.invokeLater(new Runnable() {
61 public void run() {
62 ProgressDialog.this.progressBar.setValue(ProgressDialog.this.deferredProgress);
63 }
64 });
65 }
66 }
67}
68

Callers 4

runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected