Multiple prefix matchers for the ui plugin [message #1871832] |
Sun, 13 October 2024 06:22  |
Eclipse User |
|
|
|
Hi,
I'm trying to unify the content assist of our DSL in both ui (eclipse) and ide (vscode and theia) plugins and to do that, we have the content assist logic in the ide plugin, and for the ui handled with UiToIdeContentProposalProvider.
Within the ide plugin, there's a chance to override the org.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher with a custom implementation, but in the ui plugin this is done by overriding the org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher. so we ended up having two redundant implementations for the prefixmatcher in ui which have to be done as follows:
override Class<? extends PrefixMatcher> bindPrefixMatcher() {
return TextDslPrefixMatcher
}
def Class<? extends IPrefixMatcher> bindIPrefixMatcher() {
return TextDslIdePrefixMatcher
}
my question is why the org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher is not an implementation of the org.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher interface?
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.28210 seconds