Skip to content
This repository was archived by the owner on Feb 8, 2022. It is now read-only.

Fix Update Failure #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/com/github/florent37/Generator.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void update(@NotNull AnActionEvent e) {
//only display on .dart files
final Project project = e.getProject();
if (project != null) {
final Editor editor = e.getRequiredData(CommonDataKeys.EDITOR);
final Editor editor = e.getData(CommonDataKeys.EDITOR);
final PsiFile file = PsiUtilBase.getPsiFileInEditor(editor, project);
if (file != null) {
String fileName = file.getName();
Expand Down