This commit is contained in:
gac-ISS
2023-01-18 17:07:49 +01:00
parent a44512d8d4
commit 34c56d7822
3 changed files with 14 additions and 5 deletions

View File

@@ -143,7 +143,14 @@ public class XPS extends ScriptProcessor {
}
try{
textCurScan.setText(getGlobalVar("CURRENT_REGION").toString());
Object region = getGlobalVar("CURRENT_REGION");
Object pass = getGlobalVar("CURRENT_PASS");
Number no_pases = (Number) getGlobalVar("PASSES");
String text = region.toString();
if (no_pases.intValue()>1){
text = text + " [" + pass + "]";
}
textCurScan.setText(text);
} catch(Exception ex){
getLogger().log(Level.FINER, null, ex);
textCurScan.setText("");