first of all, thank you very much for this great tool! I would like to use the autocompletion + rsta but rsta does not support my syntax (pick d3 basic programs), so Im using an DefaultStyledDocument to highlight the keywords. I see your TokenMakerMaker but had problems with $ character and other particularities..also I cant get the new flex files work with rsta.
About upper case, your code works very well in BasicCompletions and FunctionCompletions, but in TemplateCompletions nothing happens.
I implemented this way:
java code:
AutoCompletion ac = new AutoCompletion(provider) {
@Override
protected String getReplacementText(Completion c, Document doc, int start, int len) {
String text = super.getReplacementText(c, doc, start, len);
if (Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK) == true) {
return text == null ? null : text.toUpperCase();
} else {
return text == null ? null : text;
}
}
};