I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit fe4fbce7 authored by zzz's avatar zzz
Browse files

Wizard: Add a simple progress ticker to bw test status

parent 33374eac
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,8 @@ public class WizardHelper extends HelperBase { ...@@ -39,6 +39,8 @@ public class WizardHelper extends HelperBase {
// session scope // session scope
private TestListener _listener; private TestListener _listener;
private MLabRunner.ToolRun _runner; private MLabRunner.ToolRun _runner;
private String _lastTestStatus;
private int _lastTestCount;
/** /**
* Overriden to only do this once. * Overriden to only do this once.
...@@ -74,8 +76,22 @@ public class WizardHelper extends HelperBase { ...@@ -74,8 +76,22 @@ public class WizardHelper extends HelperBase {
String rv = ""; String rv = "";
if (_runner != null) { if (_runner != null) {
String s = _runner.getStatus(); String s = _runner.getStatus();
if (s != null) if (s != null) {
rv = DataHelper.escapeHTML(s); rv = DataHelper.escapeHTML(s);
if (rv.equals(_lastTestStatus)) {
_lastTestCount++;
int mod = _lastTestCount & 0x03;
if (mod == 1)
rv += ".";
else if (mod == 2)
rv += "..";
else if (mod == 3)
rv += "...";
} else {
_lastTestCount = 0;
_lastTestStatus = rv;
}
}
} }
return rv; return rv;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment