diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/analysis')
| -rw-r--r-- | src/main/java/cuchaz/enigma/analysis/index/JarIndex.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/java/cuchaz/enigma/analysis/index/JarIndex.java b/src/main/java/cuchaz/enigma/analysis/index/JarIndex.java index 8e92dd8..c96e774 100644 --- a/src/main/java/cuchaz/enigma/analysis/index/JarIndex.java +++ b/src/main/java/cuchaz/enigma/analysis/index/JarIndex.java | |||
| @@ -20,6 +20,8 @@ import cuchaz.enigma.translation.mapping.EntryResolver; | |||
| 20 | import cuchaz.enigma.translation.mapping.IndexEntryResolver; | 20 | import cuchaz.enigma.translation.mapping.IndexEntryResolver; |
| 21 | import cuchaz.enigma.translation.representation.Lambda; | 21 | import cuchaz.enigma.translation.representation.Lambda; |
| 22 | import cuchaz.enigma.translation.representation.entry.*; | 22 | import cuchaz.enigma.translation.representation.entry.*; |
| 23 | import cuchaz.enigma.utils.I18n; | ||
| 24 | |||
| 23 | import org.objectweb.asm.ClassReader; | 25 | import org.objectweb.asm.ClassReader; |
| 24 | import org.objectweb.asm.Opcodes; | 26 | import org.objectweb.asm.Opcodes; |
| 25 | 27 | ||
| @@ -58,18 +60,18 @@ public class JarIndex implements JarIndexer { | |||
| 58 | } | 60 | } |
| 59 | 61 | ||
| 60 | public void indexJar(ClassCache classCache, ProgressListener progress) { | 62 | public void indexJar(ClassCache classCache, ProgressListener progress) { |
| 61 | progress.init(4, "Indexing jar"); | 63 | progress.init(4, I18n.translate("progress.jar.indexing")); |
| 62 | 64 | ||
| 63 | progress.step(1, "Entries..."); | 65 | progress.step(1, I18n.translate("progress.jar.indexing.entries")); |
| 64 | classCache.visit(() -> new IndexClassVisitor(this, Opcodes.ASM5), ClassReader.SKIP_CODE); | 66 | classCache.visit(() -> new IndexClassVisitor(this, Opcodes.ASM5), ClassReader.SKIP_CODE); |
| 65 | 67 | ||
| 66 | progress.step(2, "Entry references..."); | 68 | progress.step(2, I18n.translate("progress.jar.indexing.references")); |
| 67 | classCache.visit(() -> new IndexReferenceVisitor(this, entryIndex, inheritanceIndex, Opcodes.ASM5), 0); | 69 | classCache.visit(() -> new IndexReferenceVisitor(this, entryIndex, inheritanceIndex, Opcodes.ASM5), 0); |
| 68 | 70 | ||
| 69 | progress.step(3, "Bridge methods..."); | 71 | progress.step(3, I18n.translate("progress.jar.indexing.methods")); |
| 70 | bridgeMethodIndex.findBridgeMethods(); | 72 | bridgeMethodIndex.findBridgeMethods(); |
| 71 | 73 | ||
| 72 | progress.step(4, "Processing..."); | 74 | progress.step(4, I18n.translate("progress.jar.indexing.process")); |
| 73 | processIndex(this); | 75 | processIndex(this); |
| 74 | } | 76 | } |
| 75 | 77 | ||