mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
rename IntentionLike -> FileModifier due to new usages
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
* @since 171.*
|
||||
* @author peter
|
||||
*/
|
||||
public interface IntentionLike extends WriteActionAware {
|
||||
public interface FileModifier extends WriteActionAware {
|
||||
|
||||
/**
|
||||
* Controls whether this intention/fix is going to modify the current file.
|
||||
@@ -39,7 +39,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
*
|
||||
* @see IntentionManager#registerIntentionAndMetaData(IntentionAction, String...)
|
||||
*/
|
||||
public interface IntentionAction extends IntentionLike {
|
||||
public interface IntentionAction extends FileModifier {
|
||||
IntentionAction[] EMPTY_ARRAY = new IntentionAction[0];
|
||||
/**
|
||||
* Returns text to be shown in the list of available actions, if this action
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInspection;
|
||||
|
||||
import com.intellij.codeInsight.intention.IntentionLike;
|
||||
import com.intellij.codeInsight.intention.FileModifier;
|
||||
|
||||
/**
|
||||
* QuickFix based on {@link ProblemDescriptor ProblemDescriptor}
|
||||
@@ -37,6 +37,6 @@ import com.intellij.codeInsight.intention.IntentionLike;
|
||||
* @see ProblemDescriptor
|
||||
* @see com.intellij.openapi.util.Iconable
|
||||
*/
|
||||
public interface LocalQuickFix extends QuickFix<ProblemDescriptor>, IntentionLike {
|
||||
public interface LocalQuickFix extends QuickFix<ProblemDescriptor>, FileModifier {
|
||||
LocalQuickFix[] EMPTY_ARRAY = new LocalQuickFix[0];
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package com.intellij.codeInsight;
|
||||
|
||||
import com.intellij.codeInsight.intention.IntentionLike;
|
||||
import com.intellij.codeInsight.intention.FileModifier;
|
||||
import com.intellij.lang.ContextAwareActionHandler;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -26,6 +26,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* @see ContextAwareActionHandler to hide an action from popups but allow access by shortcut, main menu or find.
|
||||
*/
|
||||
public interface CodeInsightActionHandler extends IntentionLike {
|
||||
public interface CodeInsightActionHandler extends FileModifier {
|
||||
void invoke(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file);
|
||||
}
|
||||
Reference in New Issue
Block a user