MCPcopy Create free account
hub / github.com/PCGen/pcgen / run

Method run

code/src/java/pcgen/system/PCGenTaskExecutor.java:37–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 @Override
38 public void run()
39 {
40 progressMultiplier = Fraction.getFraction(1, tasks.size());
41 while (!tasks.isEmpty())
42 {
43 currentTask = tasks.poll();
44 setValues(currentTask.getMessage(), baseProgress.getNumerator(), baseProgress.getDenominator());
45 currentTask.addPCGenTaskListener(this);
46 currentTask.run();
47 currentTask.removePCGenTaskListener(this);
48 baseProgress = baseProgress.add(progressMultiplier);
49 }
50 }
51
52 @Override
53 public void progressChanged(PCGenTaskEvent event)

Callers 2

startupWithGUIMethod · 0.95
startupWithoutGUIMethod · 0.95

Calls 7

addPCGenTaskListenerMethod · 0.80
sizeMethod · 0.65
isEmptyMethod · 0.65
setValuesMethod · 0.65
getMessageMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected