Skip to content

Commit

Permalink
GitHub issue nicity#6 : update failed for AnAction with ID=CppSupport…
Browse files Browse the repository at this point in the history
….CompileSomeThing: com/intellij/openapi/actionSystem/DataKeys
  • Loading branch information
nicity committed Mar 29, 2015
1 parent 05ecddc commit 5789eed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/com/advancedtools/cpp/actions/CompileCppAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class CompileCppAction extends AnAction {
private static CppSupportSettings.CompilerSelectOptions lastOptions;

public void actionPerformed(AnActionEvent anActionEvent) {
invoke(anActionEvent.getData(DataKeys.PROJECT), anActionEvent.getData(DataKeys.VIRTUAL_FILE), null);
invoke(anActionEvent.getData(LangDataKeys.PROJECT), anActionEvent.getData(LangDataKeys.VIRTUAL_FILE), null);
}

interface CompileCppOptions {
Expand Down Expand Up @@ -302,8 +302,8 @@ private static CompileHandler getCompileHandler(CppSupportSettings.CompilerSelec
public void update(AnActionEvent e) {
super.update(e);

final Project project = e.getData(DataKeys.PROJECT);
final VirtualFile file = e.getData(DataKeys.VIRTUAL_FILE);
final Project project = e.getData(LangDataKeys.PROJECT);
final VirtualFile file = e.getData(LangDataKeys.VIRTUAL_FILE);

boolean visible = project != null &&
file != null &&
Expand Down

0 comments on commit 5789eed

Please sign in to comment.