Code sample which shows how one can create custom dropdown type editor.