mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
[codeInspection.ui] Delete RegExpAdvertiser#getActions
IJ-CR-117041 GitOrigin-RevId: e4657b48961f96489fcfa6458a70979e029e7563
This commit is contained in:
committed by
intellij-monorepo-bot
parent
17aab5683e
commit
ff764c7aad
@@ -1,22 +1,12 @@
|
|||||||
package org.intellij.lang.regexp.inspection.custom;
|
package org.intellij.lang.regexp.inspection.custom;
|
||||||
|
|
||||||
import com.intellij.openapi.actionSystem.AnAction;
|
|
||||||
import com.intellij.profile.codeInspection.ui.InspectionTreeAdvertiser;
|
import com.intellij.profile.codeInspection.ui.InspectionTreeAdvertiser;
|
||||||
import com.intellij.profile.codeInspection.ui.SingleInspectionProfilePanel;
|
|
||||||
import org.intellij.lang.regexp.RegExpBundle;
|
import org.intellij.lang.regexp.RegExpBundle;
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class RegExpAdvertiser extends InspectionTreeAdvertiser {
|
public class RegExpAdvertiser extends InspectionTreeAdvertiser {
|
||||||
|
|
||||||
@Override
|
|
||||||
public @NotNull List<AnAction> getActions(SingleInspectionProfilePanel panel) {
|
|
||||||
return List.of(
|
|
||||||
new RegExpProfileActionProvider.AddCustomRegExpInspectionAction(panel, RegExpBundle.message("inspection.tree.create.inspection"), false)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CustomGroup> getCustomGroups() {
|
public List<CustomGroup> getCustomGroups() {
|
||||||
return List.of(
|
return List.of(
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||||
package com.intellij.profile.codeInspection.ui;
|
package com.intellij.profile.codeInspection.ui;
|
||||||
|
|
||||||
import com.intellij.openapi.actionSystem.AnAction;
|
|
||||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -14,13 +12,6 @@ public abstract class InspectionTreeAdvertiser {
|
|||||||
public static final ExtensionPointName<InspectionTreeAdvertiser> EP_NAME =
|
public static final ExtensionPointName<InspectionTreeAdvertiser> EP_NAME =
|
||||||
ExtensionPointName.create("com.intellij.inspectionTreeAdvertiser");
|
ExtensionPointName.create("com.intellij.inspectionTreeAdvertiser");
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns additional actions for creating inspections.
|
|
||||||
* They appear when no inspections are found after filtering the inspection tree.
|
|
||||||
*/
|
|
||||||
@NotNull
|
|
||||||
public List<AnAction> getActions(SingleInspectionProfilePanel panel) { return List.of(); }
|
|
||||||
|
|
||||||
public record CustomGroup(String[] path, String description) {}
|
public record CustomGroup(String[] path, String description) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,26 +1,13 @@
|
|||||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||||
package com.intellij.structuralsearch.inspection;
|
package com.intellij.structuralsearch.inspection;
|
||||||
|
|
||||||
import com.intellij.openapi.actionSystem.AnAction;
|
|
||||||
import com.intellij.profile.codeInspection.ui.InspectionTreeAdvertiser;
|
import com.intellij.profile.codeInspection.ui.InspectionTreeAdvertiser;
|
||||||
import com.intellij.profile.codeInspection.ui.SingleInspectionProfilePanel;
|
|
||||||
import com.intellij.structuralsearch.SSRBundle;
|
import com.intellij.structuralsearch.SSRBundle;
|
||||||
import com.intellij.structuralsearch.inspection.StructuralSearchProfileActionProvider.AddInspectionAction;
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class StructuralSearchAdvertiser extends InspectionTreeAdvertiser {
|
public class StructuralSearchAdvertiser extends InspectionTreeAdvertiser {
|
||||||
|
|
||||||
@Override
|
|
||||||
@NotNull
|
|
||||||
public List<AnAction> getActions(SingleInspectionProfilePanel panel) {
|
|
||||||
return List.of(
|
|
||||||
new AddInspectionAction(panel, SSRBundle.message("inspection.tree.create.inspection.search.template"), false),
|
|
||||||
new AddInspectionAction(panel, SSRBundle.message("inspection.tree.create.inspection.replace.template"), true)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CustomGroup> getCustomGroups() {
|
public List<CustomGroup> getCustomGroups() {
|
||||||
return List.of(
|
return List.of(
|
||||||
|
|||||||
Reference in New Issue
Block a user