|
7 | 7 | import club.bytecode.the.jda.gui.MainViewerGUI; |
8 | 8 | import club.bytecode.the.jda.gui.fileviewer.BytecodeFoldParser; |
9 | 9 | import club.bytecode.the.jda.gui.fileviewer.BytecodeTokenizer; |
| 10 | +import club.bytecode.the.jda.gui.fileviewer.JDAJavaTokenizer; |
10 | 11 | import club.bytecode.the.jda.gui.fileviewer.ViewerFile; |
11 | 12 | import club.bytecode.the.jda.gui.navigation.FileNavigationPane; |
12 | 13 | import club.bytecode.the.jda.settings.Settings; |
|
15 | 16 | import org.apache.commons.io.FileUtils; |
16 | 17 | import org.fife.ui.rsyntaxtextarea.AbstractTokenMakerFactory; |
17 | 18 | import org.fife.ui.rsyntaxtextarea.TokenMakerFactory; |
| 19 | +import org.fife.ui.rsyntaxtextarea.folding.CurlyFoldParser; |
18 | 20 | import org.fife.ui.rsyntaxtextarea.folding.FoldParserManager; |
19 | 21 | import org.objectweb.asm.ClassWriter; |
20 | 22 | import org.objectweb.asm.tree.ClassNode; |
@@ -131,7 +133,9 @@ else if (!pluginsDir.isDirectory()) |
131 | 133 | public static void onGUILoad() { |
132 | 134 | AbstractTokenMakerFactory atmf = (AbstractTokenMakerFactory)TokenMakerFactory.getDefaultInstance(); |
133 | 135 | atmf.putMapping(BytecodeTokenizer.SYNTAX_STYLE_BYTECODE, BytecodeTokenizer.class.getName()); |
| 136 | + atmf.putMapping(JDAJavaTokenizer.SYNTAX_STYLE_JDA_JAVA, JDAJavaTokenizer.class.getName()); |
134 | 137 | FoldParserManager.get().addFoldParserMapping(BytecodeTokenizer.SYNTAX_STYLE_BYTECODE, new BytecodeFoldParser()); |
| 138 | + FoldParserManager.get().addFoldParserMapping(JDAJavaTokenizer.SYNTAX_STYLE_JDA_JAVA, new CurlyFoldParser()); |
135 | 139 |
|
136 | 140 | plugins.forEach(JDAPlugin::onGUILoad); |
137 | 141 | } |
|
0 commit comments