show script + package names with paragraph syntax in tagtree

This commit is contained in:
2015-07-22 14:15:15 +02:00
parent 1b2488e2ab
commit d29ef4ca25
3 changed files with 14 additions and 7 deletions
@@ -465,6 +465,15 @@ public abstract class Action implements GraphSourceItem {
return writer.toString();
}
private static void informListeners(List<DisassemblyListener> listeners, int pos, int count) {
if (pos % INFORM_LISTENER_RESOLUTION == 0) {
DisassemblyListener[] listenersArray = listeners.toArray(new DisassemblyListener[listeners.size()]);
for (DisassemblyListener listener : listenersArray) {
listener.progressToString(pos + 1, count);
}
}
}
/**
* Converts list of actions to ASM source
*
@@ -493,11 +502,7 @@ public abstract class Action implements GraphSourceItem {
int pos = 0;
boolean lastPush = false;
for (Action a : list) {
if (pos % INFORM_LISTENER_RESOLUTION == 0) {
for (DisassemblyListener listener : listeners) {
listener.progressToString(pos + 1, list.size());
}
}
informListeners(listeners, pos, list.size());
if (exportMode == ScriptExportMode.PCODE_HEX) {
if (lastPush) {