don't catch ProcessCanceledException

This commit is contained in:
Max Medvedev
2013-03-19 15:54:11 +04:00
parent 29a9aec361
commit 29e6887ee1
@@ -21,6 +21,7 @@ import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ex.ApplicationManagerEx;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.fileEditor.impl.LoadTextUtil;
import com.intellij.openapi.progress.ProcessCanceledException;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.project.ProjectManager;
@@ -275,6 +276,9 @@ public class GroovyDslFileIndex extends ScalarIndexExtension<String> {
try {
return TypesUtil.createTypeByFQClassName(className, scriptFile);
}
catch (ProcessCanceledException e) {
throw e;
}
catch (RuntimeException e) {
script.handleDslError(e);
return null;