mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[refactoring] Fix some raw-types in inplace introducers
GitOrigin-RevId: 8e2e93e1bfdd4ead7d0ef0b00aeacedbec7fe341
This commit is contained in:
committed by
intellij-monorepo-bot
parent
517aa1f90b
commit
1def0c841c
@@ -99,5 +99,5 @@ public abstract class IntroduceHandlerBase implements RefactoringActionHandler,
|
||||
protected abstract boolean invokeImpl(Project project, PsiLocalVariable localVariable, @Nullable Editor editor);
|
||||
|
||||
@TestOnly
|
||||
public abstract AbstractInplaceIntroducer getInplaceIntroducer();
|
||||
public abstract AbstractInplaceIntroducer<?, ?> getInplaceIntroducer();
|
||||
}
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ public class IntroduceConstantHandler extends BaseExpressionToFieldHandler imple
|
||||
String enteredName = null;
|
||||
boolean replaceAllOccurrences = true;
|
||||
|
||||
final AbstractInplaceIntroducer activeIntroducer = AbstractInplaceIntroducer.getActiveIntroducer(editor);
|
||||
final AbstractInplaceIntroducer<?, ?> activeIntroducer = AbstractInplaceIntroducer.getActiveIntroducer(editor);
|
||||
if (activeIntroducer != null) {
|
||||
activeIntroducer.stopIntroduce(editor);
|
||||
expr = (PsiExpression)activeIntroducer.getExpr();
|
||||
|
||||
+2
-2
@@ -55,7 +55,7 @@ public abstract class AbstractInplaceIntroducer<V extends PsiNameIdentifierOwner
|
||||
protected final String myExprText;
|
||||
private final String myLocalName;
|
||||
|
||||
public static final Key<AbstractInplaceIntroducer> ACTIVE_INTRODUCE = Key.create("ACTIVE_INTRODUCE");
|
||||
public static final Key<AbstractInplaceIntroducer<?, ?>> ACTIVE_INTRODUCE = Key.create("ACTIVE_INTRODUCE");
|
||||
|
||||
private EditorEx myPreview;
|
||||
private final JComponent myPreviewComponent;
|
||||
@@ -632,7 +632,7 @@ public abstract class AbstractInplaceIntroducer<V extends PsiNameIdentifierOwner
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static AbstractInplaceIntroducer getActiveIntroducer(@Nullable Editor editor) {
|
||||
public static AbstractInplaceIntroducer<?, ?> getActiveIntroducer(@Nullable Editor editor) {
|
||||
if (editor == null) return null;
|
||||
return editor.getUserData(ACTIVE_INTRODUCE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user