Fixed Introduce Variable type annotation adding.

This commit is contained in:
Alexander.Podkhalyuzin
2012-02-22 12:52:27 +04:00
parent b46e20c5c3
commit 7c00984930
@@ -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');