Check for framework support
This is the same question as this one https://intellij-support.jetbrains.com/hc/en-us/community/posts/206140259-Checking-framework-support?input_string=Check%20for%20framework , but the answer there isn't very elucidative.
So, how can I check if a given module supports a given framework?
p.s: next time should I write my question in a similar previously asked question or is it ok to ask again?
请先登录再写评论。
What exactly do you mean with "framework"?
By framework, I mean support for a technology. I'm building a framework of my own, and it will be shown together with all the other technologies at the project creation step (the step you can select the technologies you will use in your project). I'm creating a toolwindow for it, but I only want it to appear in case the user has selected my framework when he created the project. So, I need a way to check if he selected or not.
I assume you use FrameworkSupportProvider. Usually availability of certain frameworks is checked by
a) presence of certain classes (e.g. library)
b) presence of certain files (e.g. framework specific configuration files)
c) presence of Facet(s) ("usual" way, especially when it allows for user configuration)