SSR: Do not populate 'Meta data' of new inspection (IDEA-241611)

GitOrigin-RevId: f0792178f1fee72b63448d75393a85f26cce2d39
This commit is contained in:
Bas Leijdekkers
2020-05-26 21:25:01 +03:00
committed by intellij-monorepo-bot
parent a3f17ba4d3
commit 5267e53b43
2 changed files with 10 additions and 1 deletions
@@ -128,6 +128,10 @@ public class StructuralSearchProfileActionProvider extends InspectionProfileActi
assert project != null;
final Configuration configuration = dialog.getConfiguration();
configuration.setOrder(0); // reset
configuration.setName(SSRBundle.message("new.template.defaultname"));
configuration.setDescription("");
configuration.setProblemDescriptor("");
configuration.setSuppressId("");
if (!createNewInspection(configuration, project, profile)) {
return;
}
@@ -201,6 +205,11 @@ public class StructuralSearchProfileActionProvider extends InspectionProfileActi
init();
}
@Override
public @Nullable JComponent getPreferredFocusedComponent() {
return myNameTextField;
}
@Override
protected @NotNull List<ValidationInfo> doValidateAll() {
final List<ValidationInfo> result = new SmartList<>();
@@ -13,7 +13,7 @@ save.template.description.button=Save Template
save.template.text.button=S&ave Template...
save.inspection.action.text=Save Template as Inspection...
create.inspection.from.template.action.text=Create Inspection from Template...
new.template.defaultname=user defined
new.template.defaultname=Unnamed
recursive.matching.checkbox=&Recursive
reformat.checkbox=Re&format