mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remember values also when showing in-place editor (IDEA-55269)
This commit is contained in:
+1
-1
@@ -64,6 +64,7 @@ public class ListModelEditor extends PropertyEditor<String[]> {
|
||||
|
||||
public JComponent getComponent(final RadComponent component, final String[] value, final InplaceContext inplaceContext) {
|
||||
myLastComponent = component;
|
||||
myLastValue = value;
|
||||
if (inplaceContext != null) {
|
||||
if (inplaceContext.isStartedByTyping()) {
|
||||
openListEditorDialog(new String[] { Character.toString(inplaceContext.getStartChar()) });
|
||||
@@ -74,7 +75,6 @@ public class ListModelEditor extends PropertyEditor<String[]> {
|
||||
inplaceContext.setModalDialogDisplayed(true);
|
||||
}
|
||||
else {
|
||||
myLastValue = value;
|
||||
myTextField.setText(listValueToString(value));
|
||||
}
|
||||
return myTextField;
|
||||
|
||||
Reference in New Issue
Block a user