mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection tool window: key id -> short-name NPE fixed IDEA-155872
This commit is contained in:
@@ -92,11 +92,12 @@ public class InspectionNodeInfo extends JPanel {
|
||||
@Override
|
||||
public boolean onClick(@NotNull MouseEvent event, int clickCount) {
|
||||
DisableInspectionToolAction.modifyAndCommitProjectProfile(model -> {
|
||||
final String toolId = key.toString();
|
||||
if (enabled) {
|
||||
model.disableTool(key.getID(), project);
|
||||
model.disableTool(toolId, project);
|
||||
}
|
||||
else {
|
||||
((InspectionProfileImpl)model).enableTool(key.getID(), project);
|
||||
((InspectionProfileImpl)model).enableTool(toolId, project);
|
||||
}
|
||||
}, project);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user