show initial value only for strings and primitive types

This commit is contained in:
Egor.Ushakov
2014-05-30 18:06:00 +04:00
parent 13986db9a6
commit d47756d681
@@ -59,7 +59,11 @@ public class JavaValueModifier extends XValueModifier {
@Nullable
@Override
public String getInitialValueEditorText() {
return myJavaValue.getValueString();
Value value = myJavaValue.getDescriptor().getValue();
if (value instanceof PrimitiveValue || value instanceof StringReference) {
return myJavaValue.getValueString();
}
return null;
}
//public void update(AnActionEvent e) {