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:
+93
-3
@@ -16,15 +16,21 @@
|
||||
package com.intellij.codeInspection.ex;
|
||||
|
||||
import com.intellij.analysis.AnalysisScope;
|
||||
import com.intellij.codeInspection.GlobalInspectionContext;
|
||||
import com.intellij.codeInspection.InspectionEP;
|
||||
import com.intellij.codeInspection.InspectionManager;
|
||||
import com.intellij.codeInsight.intention.IntentionAction;
|
||||
import com.intellij.codeInspection.*;
|
||||
import com.intellij.codeInspection.reference.RefElement;
|
||||
import com.intellij.codeInspection.reference.RefEntity;
|
||||
import com.intellij.codeInspection.reference.RefManager;
|
||||
import com.intellij.codeInspection.reference.RefModule;
|
||||
import com.intellij.codeInspection.ui.InspectionNode;
|
||||
import com.intellij.codeInspection.ui.InspectionTreeNode;
|
||||
import com.intellij.lang.annotation.HighlightSeverity;
|
||||
import com.intellij.openapi.vcs.FileStatus;
|
||||
import org.jdom.Element;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -51,6 +57,11 @@ public class CommonInspectionToolWrapper extends InspectionToolWrapper<Inspectio
|
||||
getTool().runInspection(scope, manager);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RefManager getRefManager() {
|
||||
return getTool().getRefManager();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialize(@NotNull GlobalInspectionContextImpl context) {
|
||||
getTool().initialize(context);
|
||||
@@ -92,6 +103,21 @@ public class CommonInspectionToolWrapper extends InspectionToolWrapper<Inspectio
|
||||
return getTool().getComposer();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void finalCleanup() {
|
||||
getTool().finalCleanup();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cleanup() {
|
||||
getTool().cleanup();
|
||||
}
|
||||
|
||||
public boolean isEnabledByDefault() {
|
||||
return getTool().isEnabledByDefault();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public QuickFixAction[] getQuickFixes(RefEntity[] refElements) {
|
||||
return getTool().getQuickFixes(refElements);
|
||||
@@ -104,6 +130,45 @@ public class CommonInspectionToolWrapper extends InspectionToolWrapper<Inspectio
|
||||
return getTool().createToolNode(provider, parentNode, showStructure);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"UnusedDeclaration"})
|
||||
@Nullable
|
||||
public IntentionAction findQuickFixes(CommonProblemDescriptor descriptor, String hint) {
|
||||
return getTool().findQuickFixes(descriptor, hint);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HighlightSeverity getCurrentSeverity(RefElement element) {
|
||||
return getTool().getCurrentSeverity(element);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FileStatus getElementStatus(RefEntity element) {
|
||||
return getTool().getElementStatus(element);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isElementIgnored(RefEntity element) {
|
||||
return getTool().isElementIgnored(element);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public Set<RefModule> getModuleProblems() {
|
||||
return getTool().getModuleProblems();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOldProblemsIncluded() {
|
||||
return getTool().isOldProblemsIncluded();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public Map<String, Set<RefEntity>> getOldContent() {
|
||||
return getTool().getOldContent();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean queryExternalUsagesRequests(InspectionManager manager) {
|
||||
return getTool().queryExternalUsagesRequests(manager);
|
||||
@@ -113,4 +178,29 @@ public class CommonInspectionToolWrapper extends InspectionToolWrapper<Inspectio
|
||||
public void exportResults(@NotNull Element parentNode, RefEntity refEntity) {
|
||||
getTool().exportResults(parentNode, refEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void exportResults(@NotNull Element parentNode) {
|
||||
getTool().exportResults(parentNode);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void amnesty(RefEntity refEntity) {
|
||||
getTool().amnesty(refEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ignoreCurrentElement(RefEntity refElement) {
|
||||
getTool().ignoreCurrentElement(refElement);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<RefEntity> getIgnoredRefElements() {
|
||||
return getTool().getIgnoredRefElements();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public SuppressIntentionAction[] getSuppressActions() {
|
||||
return getTool().getSuppressActions();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,4 +48,23 @@ public class ConvertAnnotationImpl implements Convert {
|
||||
return mySoft;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (!(o instanceof ConvertAnnotationImpl)) return false;
|
||||
|
||||
ConvertAnnotationImpl that = (ConvertAnnotationImpl)o;
|
||||
|
||||
if (mySoft != that.mySoft) return false;
|
||||
if (!myConverter.getClass().equals(that.myConverter.getClass())) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = myConverter.getClass().hashCode();
|
||||
result = 31 * result + (mySoft ? 1 : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user