How cancel Action?

I want cancel CompileAction, when I found some special TextAttributesKeys in file.  I listen for him with AnActionListener, but I can't stop or cancel action.

Is there a way in api that allow to do this?
0

No. If you want to control the compilation process, you need to plug into the compilation system and, essentially, generate compilation errors if your file contains the strings that you don't wan to be there.

0

请先登录再写评论。