Display custom language source folder similar to java source folder


I'm trying to display my custom language's directory structure similar to the way java src files are shown, but I'm having trouble finding an API to do this. If needed I could just add my source folder as a java source folder from the accompanying gradle plugin, but if possible I'd like it to be part of the IDE plugin.

Right now my project looks like
----java (in blue)
----custom_lang (not blue)

I'd like to have the custom_lang folder behave like java does (display in blue, collapse packages)

Thank you!

1 comment
Comment actions Permalink

See com.intellij.openapi.roots.SourceFolder and com.intellij.openapi.roots.ui.configuration.ModuleSourceRootEditHandler


Please sign in to leave a comment.