mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -95,7 +95,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public abstract class DaemonAnalyzerTestCase extends CodeInsightTestCase {
|
||||
private final Map<String, LocalInspectionToolWrapper> myAvailableTools = new THashMap<String, LocalInspectionToolWrapper>();
|
||||
private final Map<String, InspectionToolWrapper> myAvailableTools = new THashMap<String, InspectionToolWrapper>();
|
||||
private final FileTreeAccessFilter myFileTreeAccessFilter = new FileTreeAccessFilter();
|
||||
|
||||
@Override
|
||||
@@ -123,7 +123,7 @@ public abstract class DaemonAnalyzerTestCase extends CodeInsightTestCase {
|
||||
@Override
|
||||
@NotNull
|
||||
public InspectionTool[] getInspectionTools(PsiElement element) {
|
||||
Collection<LocalInspectionToolWrapper> values = myAvailableTools.values();
|
||||
Collection<InspectionToolWrapper> values = myAvailableTools.values();
|
||||
return values.toArray(new InspectionTool[values.size()]);
|
||||
}
|
||||
|
||||
@@ -201,11 +201,11 @@ public abstract class DaemonAnalyzerTestCase extends CodeInsightTestCase {
|
||||
}
|
||||
|
||||
protected void enableInspectionTool(InspectionProfileEntry tool){
|
||||
LocalInspectionToolWrapper wrapper = new LocalInspectionToolWrapper((LocalInspectionTool)tool);
|
||||
InspectionToolWrapper wrapper = InspectionToolRegistrar.wrapTool(tool);
|
||||
final String shortName = wrapper.getShortName();
|
||||
final HighlightDisplayKey key = HighlightDisplayKey.find(shortName);
|
||||
if (key == null) {
|
||||
HighlightDisplayKey.register(shortName, wrapper.getDisplayName(), wrapper.getID());
|
||||
HighlightDisplayKey.register(shortName, wrapper.getDisplayName(), ((LocalInspectionToolWrapper)wrapper).getID());
|
||||
}
|
||||
myAvailableTools.put(shortName, wrapper);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user