suggest to create groovy run configuration for classes when there are @Grab annotations in the file

This commit is contained in:
peter
2011-12-21 20:32:52 +01:00
parent 11ddd02b2d
commit 6d45628718
3 changed files with 28 additions and 60 deletions
@@ -43,7 +43,7 @@ public class ApplicationConfigurationProducer extends JavaRuntimeConfigurationPr
return myPsiElement;
}
protected RunnerAndConfigurationSettings createConfigurationByElement(Location location, final ConfigurationContext context) {
public RunnerAndConfigurationSettings createConfigurationByElement(Location location, final ConfigurationContext context) {
location = JavaExecutionUtil.stepIntoSingleClass(location);
if (location == null) return null;
final PsiElement element = location.getPsiElement();