@Override public void update(AnActionEvent e) { final RemoteFileState state = myFile.getFileInfo().getState(); e.getPresentation().setEnabled(state == RemoteFileState.DOWNLOADED || state == RemoteFileState.ERROR_OCCURRED); }
@Override public void update(AnActionEvent e) { e.getPresentation().setEnabled(myFile.getFileInfo().getState() == RemoteFileState.DOWNLOADED); }
@Override public void update(AnActionEvent e) { final RemoteFileState state = myFile.getFileInfo().getState(); e.getPresentation().setEnabled(state == RemoteFileState.DOWNLOADED); }