|Re: Atomic Types and global methods [message #1095331 is a reply to message #958545]
||Mon, 26 August 2013 23:46
| Scot Malloy
Registered: October 2012
Alex Panchenko wrote on Thu, 25 October 2012 23:26|
Yes, you can use IModelProvider to inject your own IProjectFragment,
which creates IScriptFolders and IScriptFolder creates BinaryModules.
Then you contribute IBinaryElementParser to "playback" your types and
members, so DLTK will create corresponding binary elements.
A belated thanks, Alex.
I assumed the use of IProjectFragment, IScriptFolders, etc. implied that all of this hangs off of each relevant IScriptProject.
That approach works, except when the end-user doesn't already have a plugin-associated project open and they open a plugin-associated source file directly (via File->Open File), which in turn causes the parser to look for BinaryModules that aren't there. It appears that since there is no project, there is no place to hang the IProjectFragment from.
is there a way to hang the IProjectFragment (and subsequent IScriptFolders and BinaryModules) off of the IScriptModel instead of each IScriptProject? Or is there some other way of doing this that anchors itself at the IScriptModel level?
Powered by FUDForum
. Page generated in 0.17318 seconds