diff --git a/recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeAssociationService.java b/recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeSyntaxAssociationService.java
similarity index 85%
rename from recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeAssociationService.java
rename to recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeSyntaxAssociationService.java
index 469a01434..febf4f14f 100644
--- a/recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeAssociationService.java
+++ b/recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeSyntaxAssociationService.java
@@ -22,17 +22,17 @@
* for use by {@link RegexSyntaxHighlighter}.
*
* Users can change which highlighter is used for different file extensions by updating the
- * {@link FileTypeAssociationServiceConfig#getExtensionsToLangKeys() extensions map config}.
+ * {@link FileTypeSyntaxAssociationServiceConfig#getExtensionsToLangKeys() extensions map config}.
*
* @author Matt Coley
*/
@ApplicationScoped
-public class FileTypeAssociationService implements Service {
- public static final String SERVICE_ID = "file-type-association";
- private final FileTypeAssociationServiceConfig config;
+public class FileTypeSyntaxAssociationService implements Service {
+ public static final String SERVICE_ID = "file-type-syntax-association";
+ private final FileTypeSyntaxAssociationServiceConfig config;
@Inject
- public FileTypeAssociationService(@Nonnull FileTypeAssociationServiceConfig config) {
+ public FileTypeSyntaxAssociationService(@Nonnull FileTypeSyntaxAssociationServiceConfig config) {
this.config = config;
}
@@ -85,7 +85,7 @@ public String getServiceId() {
@Nonnull
@Override
- public FileTypeAssociationServiceConfig getServiceConfig() {
+ public FileTypeSyntaxAssociationServiceConfig getServiceConfig() {
return config;
}
}
diff --git a/recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeAssociationServiceConfig.java b/recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeSyntaxAssociationServiceConfig.java
similarity index 85%
rename from recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeAssociationServiceConfig.java
rename to recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeSyntaxAssociationServiceConfig.java
index 45158ef54..9c7723526 100644
--- a/recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeAssociationServiceConfig.java
+++ b/recaf-ui/src/main/java/software/coley/recaf/services/info/association/FileTypeSyntaxAssociationServiceConfig.java
@@ -9,7 +9,6 @@
import software.coley.recaf.config.BasicMapConfigValue;
import software.coley.recaf.config.ConfigGroups;
import software.coley.recaf.services.ServiceConfig;
-import software.coley.recaf.services.info.association.FileTypeAssociationService;
import software.coley.recaf.ui.LanguageStylesheets;
import software.coley.recaf.ui.control.richtext.syntax.RegexLanguages;
@@ -19,7 +18,7 @@
import java.util.stream.Collectors;
/**
- * Config for {@link FileTypeAssociationService}.
+ * Config for {@link FileTypeSyntaxAssociationService}.
*
* Retains mapping of file extensions to language keys used by:
*
@@ -30,12 +29,12 @@
* @author Matt Coley
*/
@ApplicationScoped
-public class FileTypeAssociationServiceConfig extends BasicConfigContainer implements ServiceConfig {
+public class FileTypeSyntaxAssociationServiceConfig extends BasicConfigContainer implements ServiceConfig {
private final ExtensionMapping extensionsToLangKeys;
@Inject
- public FileTypeAssociationServiceConfig() {
- super(ConfigGroups.SERVICE_UI, FileTypeAssociationService.SERVICE_ID + CONFIG_SUFFIX);
+ public FileTypeSyntaxAssociationServiceConfig() {
+ super(ConfigGroups.SERVICE_UI, FileTypeSyntaxAssociationService.SERVICE_ID + CONFIG_SUFFIX);
extensionsToLangKeys = new ExtensionMapping(List.of(
new Pair<>("java", "java"),
diff --git a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/ScriptManagerPane.java b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/ScriptManagerPane.java
index bd2191439..1bd7b551e 100644
--- a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/ScriptManagerPane.java
+++ b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/ScriptManagerPane.java
@@ -28,7 +28,7 @@
import software.coley.recaf.analytics.logging.Logging;
import software.coley.recaf.services.compile.CompilerDiagnostic;
import software.coley.recaf.services.file.RecafDirectoriesConfig;
-import software.coley.recaf.services.info.association.FileTypeAssociationService;
+import software.coley.recaf.services.info.association.FileTypeSyntaxAssociationService;
import software.coley.recaf.services.script.ScriptEngine;
import software.coley.recaf.services.script.ScriptFile;
import software.coley.recaf.services.script.ScriptManager;
@@ -69,7 +69,7 @@ public class ScriptManagerPane extends BorderPane {
private final ScriptManager scriptManager;
private final ScriptManagerConfig config;
private final ScriptEngine engine;
- private final FileTypeAssociationService associationService;
+ private final FileTypeSyntaxAssociationService languageAssociation;
private final WindowFactory windowFactory;
private final RecafDirectoriesConfig directories;
private final KeybindingConfig keys;
@@ -79,7 +79,7 @@ public class ScriptManagerPane extends BorderPane {
public ScriptManagerPane(@Nonnull ScriptManagerConfig config,
@Nonnull ScriptManager scriptManager,
@Nonnull ScriptEngine engine,
- @Nonnull FileTypeAssociationService associationService,
+ @Nonnull FileTypeSyntaxAssociationService languageAssociation,
@Nonnull WindowFactory windowFactory,
@Nonnull RecafDirectoriesConfig directories,
@Nonnull KeybindingConfig keys,
@@ -88,7 +88,7 @@ public ScriptManagerPane(@Nonnull ScriptManagerConfig config,
this.scriptManager = scriptManager;
this.config = config;
this.engine = engine;
- this.associationService = associationService;
+ this.languageAssociation = languageAssociation;
this.directories = directories;
this.keys = keys;
this.searchBarProvider = searchBarProvider;
@@ -138,7 +138,7 @@ private void refreshScripts() {
* Script to edit.
*/
private void editScript(@Nonnull ScriptFile script) {
- ScriptEditor scriptEditor = new ScriptEditor(associationService, script.source(), searchBarProvider.get())
+ ScriptEditor scriptEditor = new ScriptEditor(languageAssociation, script.source(), searchBarProvider.get())
.withPath(script.path());
Scene scene = new RecafScene(scriptEditor, 750, 400);
windowFactory.createAnonymousStage(scene, getBinding("menu.scripting.editor"), 750, 400).show();
@@ -160,7 +160,7 @@ public void newScript() {
System.out.println("Hello world");
""";
- ScriptEditor scriptEditor = new ScriptEditor(associationService, template, searchBarProvider.get());
+ ScriptEditor scriptEditor = new ScriptEditor(languageAssociation, template, searchBarProvider.get());
Scene scene = new RecafScene(scriptEditor, 750, 400);
windowFactory.createAnonymousStage(scene, getBinding("menu.scripting.editor"), 750, 400).show();
}
@@ -184,7 +184,7 @@ private class ScriptEditor extends BorderPane {
private final Editor editor = new Editor();
private Path scriptPath;
- private ScriptEditor(@Nonnull FileTypeAssociationService associationService, @Nonnull String initialText, @Nonnull SearchBar searchBar) {
+ private ScriptEditor(@Nonnull FileTypeSyntaxAssociationService associationService, @Nonnull String initialText, @Nonnull SearchBar searchBar) {
editor.setText(initialText);
editor.getCodeArea().getUndoManager().forgetHistory();
associationService.configureEditorSyntax("java", editor);
diff --git a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/AbstractDecompilePane.java b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/AbstractDecompilePane.java
index 25b1c202f..cb4d96949 100644
--- a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/AbstractDecompilePane.java
+++ b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/AbstractDecompilePane.java
@@ -34,7 +34,7 @@
import software.coley.recaf.services.decompile.DecompilerManager;
import software.coley.recaf.services.decompile.JvmDecompiler;
import software.coley.recaf.services.decompile.NoopJvmDecompiler;
-import software.coley.recaf.services.info.association.FileTypeAssociationService;
+import software.coley.recaf.services.info.association.FileTypeSyntaxAssociationService;
import software.coley.recaf.services.mapping.MappingResults;
import software.coley.recaf.services.mapping.Mappings;
import software.coley.recaf.services.navigation.ClassNavigable;
@@ -88,7 +88,7 @@ public class AbstractDecompilePane extends BorderPane implements ClassNavigable,
protected AbstractDecompilePane(@Nonnull DecompilerPaneConfig config,
@Nonnull SearchBar searchBar,
@Nonnull JavaContextActionSupport contextActionSupport,
- @Nonnull FileTypeAssociationService languageAssociation,
+ @Nonnull FileTypeSyntaxAssociationService languageAssociation,
@Nonnull DecompilerManager decompilerManager) {
this.config = config;
this.contextActionSupport = contextActionSupport;
diff --git a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/android/AndroidDecompilerPane.java b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/android/AndroidDecompilerPane.java
index 58a09dc80..160d4c12a 100644
--- a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/android/AndroidDecompilerPane.java
+++ b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/android/AndroidDecompilerPane.java
@@ -7,7 +7,7 @@
import software.coley.recaf.services.decompile.DecompilerManager;
import software.coley.recaf.services.navigation.Actions;
import software.coley.recaf.services.source.AstResolveResult;
-import software.coley.recaf.services.info.association.FileTypeAssociationService;
+import software.coley.recaf.services.info.association.FileTypeSyntaxAssociationService;
import software.coley.recaf.ui.config.KeybindingConfig;
import software.coley.recaf.ui.control.richtext.Editor;
import software.coley.recaf.ui.control.richtext.search.SearchBar;
@@ -29,7 +29,7 @@ public AndroidDecompilerPane(@Nonnull DecompilerPaneConfig config,
@Nonnull SearchBar searchBar,
@Nonnull ToolsContainerComponent toolsContainer,
@Nonnull JavaContextActionSupport contextActionSupport,
- @Nonnull FileTypeAssociationService languageAssociation,
+ @Nonnull FileTypeSyntaxAssociationService languageAssociation,
@Nonnull DecompilerManager decompilerManager,
@Nonnull Actions actions) {
super(config, searchBar, contextActionSupport, languageAssociation, decompilerManager);
diff --git a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/assembler/JvmExpressionCompilerPane.java b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/assembler/JvmExpressionCompilerPane.java
index 183d75de3..3c9b4540c 100644
--- a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/assembler/JvmExpressionCompilerPane.java
+++ b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/assembler/JvmExpressionCompilerPane.java
@@ -17,7 +17,7 @@
import software.coley.recaf.services.assembler.ExpressionCompiler;
import software.coley.recaf.services.assembler.ExpressionResult;
import software.coley.recaf.services.compile.CompilerDiagnostic;
-import software.coley.recaf.services.info.association.FileTypeAssociationService;
+import software.coley.recaf.services.info.association.FileTypeSyntaxAssociationService;
import software.coley.recaf.ui.LanguageStylesheets;
import software.coley.recaf.ui.control.richtext.Editor;
import software.coley.recaf.ui.control.richtext.bracket.BracketMatchGraphicFactory;
@@ -52,7 +52,7 @@ public class JvmExpressionCompilerPane extends AstBuildConsumerComponent {
@Inject
public JvmExpressionCompilerPane(@Nonnull ExpressionCompiler expressionCompiler,
- @Nonnull FileTypeAssociationService languageAssociation,
+ @Nonnull FileTypeSyntaxAssociationService languageAssociation,
@Nonnull Instance searchBarProvider) {
this.expressionCompiler = expressionCompiler;
diff --git a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/binary/DecodingXmlPane.java b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/binary/DecodingXmlPane.java
index 8ebfa0b5e..89955e5a8 100644
--- a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/binary/DecodingXmlPane.java
+++ b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/binary/DecodingXmlPane.java
@@ -15,11 +15,10 @@
import software.coley.recaf.services.navigation.FileNavigable;
import software.coley.recaf.services.navigation.Navigable;
import software.coley.recaf.services.navigation.UpdatableNavigable;
-import software.coley.recaf.services.info.association.FileTypeAssociationService;
+import software.coley.recaf.services.info.association.FileTypeSyntaxAssociationService;
import software.coley.recaf.ui.control.richtext.Editor;
import software.coley.recaf.ui.control.richtext.bracket.BracketMatchGraphicFactory;
import software.coley.recaf.ui.control.richtext.bracket.SelectedBracketTracking;
-import software.coley.recaf.ui.control.richtext.problem.ProblemSquiggleGraphicFactory;
import software.coley.recaf.ui.control.richtext.search.SearchBar;
import software.coley.recaf.util.FxThreadUtil;
import software.coley.recaf.util.StringUtil;
@@ -42,12 +41,12 @@ public class DecodingXmlPane extends BorderPane implements FileNavigable, Updata
protected FilePathNode path;
@Inject
- public DecodingXmlPane(@Nonnull SearchBar searchBar, @Nonnull FileTypeAssociationService associationService) {
+ public DecodingXmlPane(@Nonnull SearchBar searchBar, @Nonnull FileTypeSyntaxAssociationService languageAssociation) {
// Configure the editor
editor = new Editor();
editor.setSelectedBracketTracking(new SelectedBracketTracking());
editor.getRootLineGraphicFactory().addLineGraphicFactory(new BracketMatchGraphicFactory());
- associationService.configureEditorSyntax("xml", editor);
+ languageAssociation.configureEditorSyntax("xml", editor);
editor.getCodeArea().setEditable(false);
searchBar.install(editor);
diff --git a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/jvm/JvmDecompilerPane.java b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/jvm/JvmDecompilerPane.java
index 76269c1d1..bcf823e7a 100644
--- a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/jvm/JvmDecompilerPane.java
+++ b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/jvm/JvmDecompilerPane.java
@@ -27,7 +27,7 @@
import software.coley.recaf.services.decompile.DecompileResult;
import software.coley.recaf.services.decompile.DecompilerManager;
import software.coley.recaf.services.decompile.JvmDecompiler;
-import software.coley.recaf.services.info.association.FileTypeAssociationService;
+import software.coley.recaf.services.info.association.FileTypeSyntaxAssociationService;
import software.coley.recaf.services.navigation.Actions;
import software.coley.recaf.services.phantom.GeneratedPhantomWorkspaceResource;
import software.coley.recaf.services.phantom.PhantomGenerationException;
@@ -85,7 +85,7 @@ public JvmDecompilerPane(@Nonnull DecompilerPaneConfig config,
@Nonnull SearchBar searchBar,
@Nonnull ToolsContainerComponent toolsContainer,
@Nonnull JavaContextActionSupport contextActionSupport,
- @Nonnull FileTypeAssociationService languageAssociation,
+ @Nonnull FileTypeSyntaxAssociationService languageAssociation,
@Nonnull DecompilerManager decompilerManager,
@Nonnull JavacCompiler javac,
@Nonnull JavacCompilerConfig javacConfig,
diff --git a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/text/TextPane.java b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/text/TextPane.java
index f88f5f870..b71bec1dc 100644
--- a/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/text/TextPane.java
+++ b/recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/text/TextPane.java
@@ -8,7 +8,7 @@
import software.coley.recaf.info.TextFileInfo;
import software.coley.recaf.path.FilePathNode;
import software.coley.recaf.path.PathNode;
-import software.coley.recaf.services.info.association.FileTypeAssociationService;
+import software.coley.recaf.services.info.association.FileTypeSyntaxAssociationService;
import software.coley.recaf.services.navigation.FileNavigable;
import software.coley.recaf.services.navigation.Navigable;
import software.coley.recaf.services.navigation.UpdatableNavigable;
@@ -16,7 +16,6 @@
import software.coley.recaf.ui.control.richtext.Editor;
import software.coley.recaf.ui.control.richtext.bracket.BracketMatchGraphicFactory;
import software.coley.recaf.ui.control.richtext.bracket.SelectedBracketTracking;
-import software.coley.recaf.ui.control.richtext.problem.ProblemSquiggleGraphicFactory;
import software.coley.recaf.ui.control.richtext.search.SearchBar;
import software.coley.recaf.util.Animations;
import software.coley.recaf.util.FxThreadUtil;
@@ -35,12 +34,12 @@
@Dependent
public class TextPane extends BorderPane implements FileNavigable, UpdatableNavigable {
protected final AtomicBoolean updateLock = new AtomicBoolean();
- private final FileTypeAssociationService languageAssociation;
+ private final FileTypeSyntaxAssociationService languageAssociation;
protected final Editor editor;
protected FilePathNode path;
@Inject
- public TextPane(@Nonnull FileTypeAssociationService languageAssociation,
+ public TextPane(@Nonnull FileTypeSyntaxAssociationService languageAssociation,
@Nonnull KeybindingConfig keys,
@Nonnull SearchBar searchBar) {
this.languageAssociation = languageAssociation;