programatically adding extensions
Does anyone have an example of programatically adding an extension point?
I have a few working examples of doing it but they usually relying on clearing caches using reflection to access private variables.
Is there a canonical way of doing it which works for all extension types?
Thanks in advance,
请先登录再写评论。
Sorry, there's no canonical way of doing that. Most IDE components don't handle extension set being changed at runtime. For many of them, it doesn't matter because they query extensions each time, but some employ caches, and those would have to be cleared.
That's a shame, thanks for your answer anyway.
I don't suppose you are considering runtime reloading of plugins, via OSGi or anything like that? Might make life a bit easier for plugin developers.
We are considering that, but probably not in nearest future.