Add dependency on Scala for programatically adding ScalaFacet

Hi,

recently I've managed to create my own project wizard for IntelliJ. Now I want to add the Scala Facet programatically to my project (projects, that can be created with my wizard use Scala). I've found the method addFacet in the FacetManager which (as far as In suppose) should allow me that, however, I cannot access the Scala facet, basically because I cannot figure out how to add the dependency to scala to my module, alhtough it's installed and everythign for Scala is setup (I'm writing my plugin in Scala, which works seamlessly). Any hints?

Thanks in advance,

Phil

2 comments
Comment actions Permalink

You need to add the Scala plugin .jar file to the classpath of your IDEA SDK and add a <depends>org.intellij.scala</depends> tag to your plugin.xml.

0
Comment actions Permalink

thanks a lot!

cheers

0

Please sign in to leave a comment.