#463 Global search in Define*Texts parameters implemented

This commit is contained in:
Honfika
2014-01-19 23:39:59 +01:00
parent 0da9d423a0
commit 9cb75db772
10 changed files with 109 additions and 62 deletions

View File

@@ -1417,15 +1417,14 @@ public final class SWF implements TreeItem {
for (final Tag t : tags) {
if (t instanceof TextTag) {
final File file = new File(outdir + File.separator + ((TextTag) t).getCharacterId() + ".txt");
final List<Tag> ttags = this.tags;
new RetryTask(new RunnableIOEx() {
@Override
public void run() throws IOException {
try (FileOutputStream fos = new FileOutputStream(file)) {
if (formatted) {
fos.write(Utf8Helper.getBytes(((TextTag) t).getFormattedText(ttags)));
fos.write(Utf8Helper.getBytes(((TextTag) t).getFormattedText()));
} else {
fos.write(Utf8Helper.getBytes(((TextTag) t).getText(ttags)));
fos.write(Utf8Helper.getBytes(((TextTag) t).getText()));
}
}
}