package floobits.actions;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import floobits.FloobitsPlugin;
import floobits.common.Settings;
abstract public class CanFloobits extends AnAction {
@Override
public void update(AnActionEvent e) {
super.update(e);
FloobitsPlugin floobitsPlugin = FloobitsPlugin.getInstance(e.getProject());
if (floobitsPlugin == null) {
e.getPresentation().setEnabled(false);
return;
}
e.getPresentation().setEnabled(Settings.canFloobits());
}
}