mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
show initial value only for strings and primitive types
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user