action constructor and update() method should fetch action description from the same method

This commit is contained in:
Dmitry Jemerov
2013-07-05 11:06:23 +02:00
parent 8b5e2bd064
commit 6abaa9ac6c
@@ -201,14 +201,12 @@ public class ExecutorRegistryImpl extends ExecutorRegistry {
private final Executor myExecutor;
private ExecutorAction(@NotNull final Executor executor) {
super(executor.getStartActionText(), executor.getActionName(), executor.getIcon());
super(executor.getStartActionText(), executor.getDescription(), executor.getIcon());
myExecutor = executor;
}
@Override
public void update(final AnActionEvent e) {
super.update(e);
final Presentation presentation = e.getPresentation();
final Project project = PlatformDataKeys.PROJECT.getData(e.getDataContext());