First of all, thanks for all the great work on RSyntaxTextArea!
I'm using RSTA in KojoLite (http://www.kogics.net/kojolite
), the (under development) online version of Kojo (http://www.kogics.net/kojo
Kojo is a Scala based learning environment for children. Kojo is based on the Netbeans Platform, and get's its sytax highlighting, code completion, etc. from there. KojoLite does not depend on the Netbeans Platform, and that's where RSTA has come in (to provide syntax highlighting etc).
You can play with KojoLite, and see RSTA in action within it, by running the programs submitted to the Kojo Code Exchange (http://www.kogics.net/codeexchange
I'm currently adding code completion to KojoLite, and TemplateCompletions seem like the perfect way to plug my Netbeans Platform templates into RSTA. Unfortunately, the AutoComplete trunk (that's the only place I can get TemplateCompletions, right?) does not compile for me:
[delete] Deleting directory /home/lalit/work/autocomplete/ant-classes
[mkdir] Created dir: /home/lalit/work/autocomplete/ant-classes
[javac] Compiling 38 source files to /home/lalit/work/autocomplete/ant-classes
[javac] /home/lalit/work/autocomplete/src/org/fife/ui/autocomplete/ParameterizedCompletionInsertionInfo.java:64: org.fife.ui.rsyntaxtextarea.DocumentRange is abstract; cannot be instantiated
[javac] replacementLocations.add(new DocumentRange(start, end));
[javac] /home/lalit/work/autocomplete/src/org/fife/ui/autocomplete/TemplateCompletion.java:184: getLeadingWhitespace(java.lang.String) in org.fife.ui.rsyntaxtextarea.RSyntaxUtilities cannot be applied to (javax.swing.text.Document,int)
[javac] leadingWS = RSyntaxUtilities.getLeadingWhitespace(doc, dot);
[javac] 2 errors
/home/lalit/work/autocomplete/build.xml:43: Compile failed; see the compiler error output for details.
Total time: 2 seconds
Any thoughts on what the problem might be?
Creator and Lead Dev,
The Kojo Project