How do I create a new file in a project?
Subject says it all. I have an action that needs to create a new file dynamically (based on some data on another server); can anyone walk me through the process? (Or point me to code for an example that works?)
Thanks in advance,
adam connor
请先登录再写评论。
I have somehow the same question - open a fresh document and optionally load it with arbitray data( doesn't get indexed ).
Have searched the whole forum but have no clue yet. If the feature isn't there, I would degrade to ask for relative APIs to create such a feature.
Hello Garry,
Please refer to http://www.jetbrains.net/confluence/display/IDEADEV/IntelliJIDEAArchitectural+Overview
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
It's greate to see such dev doc out there, and I may got my rough answer from the document section:
But I also see the following worries for document, since I also want the new document to be able to work with PSI. It's different with e.g. a plain textfield, in short, it's a fully-functionaled editor just like the one where project startup without indices been build, is that possible?
Now I'm using the following lines to open an editor tab with an empty document:
There's no exception thrown, but the editor is not opened, do I need implement any other interface on the VF to make this work?