mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
action.update set to true
This commit is contained in:
parent
746ea04285
commit
79f8efc5a6
@ -10,6 +10,11 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
public class SimpleAction extends AnAction {
|
public class SimpleAction extends AnAction {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(@NotNull AnActionEvent anActionEvent) {
|
public void actionPerformed(@NotNull AnActionEvent anActionEvent) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(@NotNull AnActionEvent e) {
|
||||||
|
e.getPresentation().setVisible(true);
|
||||||
|
e.getPresentation().setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user