Community
Participate
Working Groups
Currently dynamic contents for list of values is supported through 'Browse' button. Its helpful in cases of huge list. But not so good at usability side for combo box UI. It would be very helpful to add @Service to enum contents as well.
To clarify, this is a request to present properties with a PossibleValuesService via a combo box. Correct?
Thats correct.
This enhancement is implemented for stand-alone property editors. The remaining task is to implement it for table cell editors.
Nice feature. Is it possible to refresh the values list from within a PossibleValuesService and have the combo display the new values (without navigation to a different editor page and back)? context(IModelElement.class).refresh() doesn't seem to do it.
> Is it possible to refresh the values list from within a PossibleValuesService > and have the combo display the new values (without navigation to a different > editor page and back)? Sure. In PossibleValuesService, register a listener on whatever condition causes the need for a refresh in the init method (remove the listener in the dispose method). Then inside your listener implementation, call "broadcast()" to cause an event to be issued by your PossibleValuesService implementation. The combo box presentation listens for this event and will refresh the list of items.
Cool, thanks!
This enhancement is now fully implemented. Both writable and strict. Both stand-alone and in a table. See gallery sample and enhancements doc. Please verify. Not that the terminology has changed from "combo" to "pop-up list field" to get away from legacy roots of the combo box term. This affects the style names used in the previous iteration of this feature.
Verified 0.5.0.201205111346. Thanks.
Closing.