super.update(e);
if (e.getProject() == null) {
e.getPresentation().setEnabled(false);
return;
}
ToggleFileAccessCommand command = getCommand(e);
boolean enabled = command.isEnabled();
e.getPresentation().setEnabled(enabled);
e.getPresentation().setText(command.getText());
}