[ 2476692 ] Dynamic validation combobox failed to display current value
This commit is contained in:
parent
61a018f5f5
commit
9fd9211728
|
@ -269,7 +269,7 @@ ContextMenuListener, IZoomableEditor
|
||||||
{
|
{
|
||||||
if (getComponent().getSelectedItem() == null)
|
if (getComponent().getSelectedItem() == null)
|
||||||
{
|
{
|
||||||
setValue(null);
|
setValue(oldValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -296,14 +296,18 @@ ContextMenuListener, IZoomableEditor
|
||||||
}
|
}
|
||||||
|
|
||||||
public void actionRefresh()
|
public void actionRefresh()
|
||||||
{
|
{
|
||||||
Object curValue = getValue();
|
|
||||||
if (lookup != null)
|
if (lookup != null)
|
||||||
{
|
{
|
||||||
|
Object curValue = getValue();
|
||||||
|
|
||||||
if (isReadWrite())
|
if (isReadWrite())
|
||||||
lookup.refresh();
|
lookup.refresh();
|
||||||
refreshList();
|
refreshList();
|
||||||
setValue(curValue);
|
if (curValue != null)
|
||||||
|
{
|
||||||
|
setValue(curValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -344,7 +348,7 @@ ContextMenuListener, IZoomableEditor
|
||||||
@Override
|
@Override
|
||||||
public void dynamicDisplay()
|
public void dynamicDisplay()
|
||||||
{
|
{
|
||||||
if (isReadWrite() && (lookup != null) && (!lookup.isValidated() || !lookup.isLoaded()))
|
if ((lookup != null) && (!lookup.isValidated() || !lookup.isLoaded()))
|
||||||
this.actionRefresh();
|
this.actionRefresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue