mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection settings: remove rename action condition
This commit is contained in:
-6
@@ -284,12 +284,6 @@ public abstract class InspectionToolsConfigurable extends BaseConfigurable
|
||||
rename(copyToNewProfile(getSelectedObject(), getProject(), true, false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canRename() {
|
||||
final InspectionProfileImpl profile = getSelectedObject();
|
||||
return !profile.isProfileLocked();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void rename() {
|
||||
rename(getSelectedObject());
|
||||
|
||||
@@ -100,11 +100,6 @@ public class ManageButton extends ComboBoxAction implements DumbAware {
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
myBuilder.rename();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(AnActionEvent e) {
|
||||
e.getPresentation().setEnabledAndVisible(myBuilder.canRename());
|
||||
}
|
||||
}
|
||||
|
||||
private class DeleteAction extends AnAction implements DumbAware {
|
||||
|
||||
-2
@@ -27,8 +27,6 @@ public interface ManageButtonBuilder {
|
||||
|
||||
void copy();
|
||||
|
||||
boolean canRename();
|
||||
|
||||
void rename();
|
||||
|
||||
boolean canDelete();
|
||||
|
||||
Reference in New Issue
Block a user