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?

3 comments
Comment actions Permalink

What exactly do you mean with "framework"?

0
Comment actions Permalink

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.

0
Comment actions Permalink

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)

 

0

Please sign in to leave a comment.