Project is available in codegen

This commit is contained in:
Andrey Breslav
2012-08-23 18:33:12 +04:00
parent 607a502fd7
commit 08bb390820
10 changed files with 54 additions and 32 deletions
@@ -209,7 +209,7 @@ public class BytecodeToolwindow extends JPanel implements Disposable {
if (binding.isError()) {
return printStackTraceToString(binding.getError());
}
state = new GenerationState(ClassBuilderFactories.TEXT, binding, Collections.singletonList(file));
state = new GenerationState(file.getProject(), ClassBuilderFactories.TEXT, binding, Collections.singletonList(file));
state.compileCorrectFiles(CompilationErrorHandler.THROW_EXCEPTION);
}
catch (Exception e) {