deregister SetupJDKFix.java, we offer new actions for that

GitOrigin-RevId: 852468e60f11734314453c9bec155ac2c35bd144
This commit is contained in:
Eugene Petrenko
2019-12-18 10:32:28 +00:00
committed by intellij-monorepo-bot
parent c324d2d27f
commit a85c7e3882
5 changed files with 2 additions and 14 deletions
@@ -141,9 +141,6 @@ public abstract class QuickFixFactory {
@NotNull PropertyMemberType targetMember,
@NotNull PsiAnnotation... annotations);
@NotNull
public abstract IntentionAction createSetupJDKFix();
@NotNull
public abstract IntentionAction createAddExceptionToCatchFix();
@@ -749,7 +749,6 @@ public class HighlightVisitorImpl extends JavaElementVisitor implements Highligh
assert referenceNameElement != null : ref;
final HighlightInfo info =
HighlightInfo.newHighlightInfo(HighlightInfoType.WRONG_REF).range(referenceNameElement).descriptionAndTooltip(description).create();
QuickFixAction.registerQuickFixAction(info, QuickFixFactory.getInstance().createSetupJDKFix());
myHolder.add(info);
}
else {
@@ -36,11 +36,9 @@ public class DefaultQuickFixProvider extends UnresolvedReferenceQuickFixProvider
return;
}
QuickFixFactory quickFixFactory = QuickFixFactory.getInstance();
registrar.register(new ImportClassFix(ref));
registrar.register(new StaticImportConstantFix(containingFile, ref));
registrar.register(new QualifyStaticConstantFix(containingFile, ref));
registrar.register(quickFixFactory.createSetupJDKFix());
OrderEntryFix.registerFixes(registrar, ref);
@@ -203,12 +203,6 @@ public class QuickFixFactoryImpl extends QuickFixFactory {
return new CreateFieldOrPropertyFix(aClass, name, type, targetMember, annotations);
}
@NotNull
@Override
public IntentionAction createSetupJDKFix() {
return SetupJDKFix.getInstance();
}
@NotNull
@Override
public IntentionAction createAddExceptionToCatchFix() {
@@ -17,7 +17,7 @@
package com.intellij.lang.properties.psi;
import com.intellij.codeInsight.CodeInsightBundle;
import com.intellij.codeInsight.intention.QuickFixFactory;
import com.intellij.codeInsight.daemon.impl.quickfix.SetupJDKFix;
import com.intellij.ide.fileTemplates.JavaTemplateUtil;
import com.intellij.openapi.project.Project;
import com.intellij.psi.JavaPsiFacade;
@@ -52,7 +52,7 @@ public class DefaultResourceBundleManager extends ResourceBundleManager {
if (getResourceBundle() != null) {
return true;
}
throw new ResourceBundleNotFoundException(CodeInsightBundle.message("i18nize.dialog.error.jdk.message"), QuickFixFactory.getInstance().createSetupJDKFix());
throw new ResourceBundleNotFoundException(CodeInsightBundle.message("i18nize.dialog.error.jdk.message"), SetupJDKFix.getInstance());
}
@Override