How do I subclass GroovyActionConsole?

Do I clone the source code of IntelliJ IDEA, find the library for GroovyActionConsole and add it to my plugin project?


Thanks

5 comments
Comment actions Permalink

I don't see any class with that name in the IntelliJ IDEA source code. Normally, if you want to subclass a class from a plugin, you need to add a <depends> tag with the plugin ID to your plugin.xml and add the jar of the plugin (from the plugins/<plugin name>/lib directory) to the classpath of your IntelliJ IDEA SDK.

You may also want to clone the source code of IntelliJ IDEA and attach it to your IntelliJ IDEA SDK, in order to see the source in the IDE, but this is not a required step.

0
Comment actions Permalink

Whoops yes it is:
GroovyActionConsole GroovyConsoleAction

Thanks Dmitry!

0
Comment actions Permalink

Sorry still not working ?:|
Which JAR file do I need to be use GroovyConsoleAction?
I keep adding groovy-eclipse-batch-2.3.4-01.jar but the acutal file is:

[cloned IntelliJ source]plugins\groovy\src\org\jetbrains\plugins\groovy\console\GroovyConsoleAction.java

0
Comment actions Permalink

You need plugins/Groovy/lib/Groovy.jar

0
Comment actions Permalink

Ok works! Thanks!:)

0

Please sign in to leave a comment.