RSTALanguageSupport
RSTALanguageSupport copied to clipboard
Is there a way to redefine the trigger key?
Hey there,
thank you for the awsome project. Sadly currently i'm facing the problem that the trigger key is already in use and therefore the autocompletion wont come up.
Is there any way to redefine the trigger key?
Thank you in advance!
yes you can do in abstract class or pass trigger key to installImp method , so all textareas could trigger autocompletion for user defined KeyStroke : this method would be update to pass a trigger key or use default
/** * Registers an auto-completion instance. This should be called by * subclasses in their * {@link #install(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea)} methods * so that this language support can update all of them at once. * * @param textArea The text area that just installed the auto-completion. // * @param ac The auto-completion instance. * @see #uninstallImpl(RSyntaxTextArea) */ protected void installImpl(RSyntaxTextArea textArea,AutoCompletion ac) { textAreaToAutoCompletion.put(textArea, ac); ac.setTriggerKey(getKeyStroke()); }
its part of class /**
- A base class for language support implementations.
- @author Robert Futrell
- @version 1.0 */ public abstract class AbstractLanguageSupport implements LanguageSupport {