> > |
%META:TOPICINFO{author="EvgenyKorabelnikov" date="1110540388" format="1.0" version="1.1"}%
Hi! For my plugin, I need to open java source files at runtime and have all the java editor functionality there like completion.
But, if I add an action which opens java source file, it doesn't have any completion, only syntax highlighting.
It looks like I need to add my source files directly to the current project and make IDEA parse it and perceive as part of the project.
So, the question is : How can I add my java source to the project dynamically from my plugin, open IDEA java source editor for it, and have completion there?
Another task is to get IDEA java source editor and add it to my complex plugin. Imagine that I have java source as a String in memory. I'd like to initialize IDEA java source editor, put my java source there, add editor to my plugin and let user edit my java source with all features like completion and so on. Then, get result sources from there and use for my needs.
How can I create IDEA built-in java source editor without having file on disk, just from string containing source code? Can I have code completion in such editor?
Related Topics: PluginDevelopmentHowTo, PluginDocumentation, ProjectPluginTemplate, OpenAPI, IntellijPluginDocumentation,
IntellijPluginDocumentation, PluginDeployment, IdeasForPlugins
-- EvgenyKorabelnikov - 11 Mar 2005
%META:FORM{name="PluginDevelopmentHowToForm"}%
%META:FIELD{name="HowToQuestion" title="HowToQuestion" value="How to add java source dynamically and have completion there"}%
%META:FIELD{name="OpenAPI" title="OpenAPI" value=""}%
%META:FIELD{name="HowToStatus" title="HowToStatus" value=" "}% |