public void run(AnActionButton anActionButton) {
TwigSettingsForm.this.openTwigPathDialog(null);
}
});
tablePanel.setEditActionUpdater(new AnActionButtonUpdater() {
@Override
public boolean isEnabled(AnActionEvent e) {
TwigPath twigPath = TwigSettingsForm.this.tableView.getSelectedObject();
return twigPath != null && twigPath.isCustomPath();
}
});
tablePanel.setRemoveActionUpdater(new AnActionButtonUpdater() {
@Override
public boolean isEnabled(AnActionEvent e) {
TwigPath twigPath = TwigSettingsForm.this.tableView.getSelectedObject();
return twigPath != null && twigPath.isCustomPath();
}