Extend Editors (Java Source Editor)
Is there a way to extend the current editors and change their behaviour?
Salesforce Apex language is similar to java but has some subtle differences.
I would like to create and editor to support it, but wouldn't want to have to start from scratch.
The java editor should fit fine except that there are some different keywords and constructs and no such thing as imports etc...
Also the JSP Editor, is it possible to extend and inject a tag library reference instead of having to reference it in the body of the file.
Visualforce pages are much like JSP pages, except the apex tags don't have to be declared at the top of the file, I would like to just extend the jsp editor and add the tag lib definition programmatically?
Is this possible?
If so is there any examples?
Thanks
Please sign in to leave a comment.
Hello Mike,
In fact, all of this "except that" almost certainly means that all the Java
functionality will not work correctly for the Apex language.
Developing custom language plugins is described in the following article:
http://confluence.jetbrains.net/display/IDEADEV/DevelopingCustomLanguagePluginsforIntelliJIDEA
You may be able to reuse (or copy/paste and tweak as needed) bits and pieces
of the Java support, which is available as open-source as part of IntelliJ
IDEA Community Edition.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks Dimitry I will take a look.
When you say
Do you mean that I could do the JSP tag lib injection by extension? Or both editors would have to be custom?
Thanks