Fixed Introduce Variable type annotation adding.
This commit is contained in:
+2
-2
@@ -46,7 +46,7 @@ public class JetInplaceVariableIntroducer extends InplaceVariableIntroducer<JetE
|
|||||||
private JetProperty myProperty;
|
private JetProperty myProperty;
|
||||||
private boolean isVar;
|
private boolean isVar;
|
||||||
private boolean myDoNotChangeVar;
|
private boolean myDoNotChangeVar;
|
||||||
private @Nullable JetType myExprType;
|
@Nullable private final JetType myExprType;
|
||||||
private JCheckBox myVarCheckbox;
|
private JCheckBox myVarCheckbox;
|
||||||
private JCheckBox myExprTypeCheckbox;
|
private JCheckBox myExprTypeCheckbox;
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ public class JetInplaceVariableIntroducer extends InplaceVariableIntroducer<JetE
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (myExpr != null) {
|
if (myExprType != null) {
|
||||||
myExprTypeCheckbox = new NonFocusableCheckBox("Add type annotation");
|
myExprTypeCheckbox = new NonFocusableCheckBox("Add type annotation");
|
||||||
myExprTypeCheckbox.setSelected(false);
|
myExprTypeCheckbox.setSelected(false);
|
||||||
myExprTypeCheckbox.setMnemonic('t');
|
myExprTypeCheckbox.setMnemonic('t');
|
||||||
|
|||||||
Reference in New Issue
Block a user