Thanks for trying. I will forward this thread separately to the webmaster as there have been sporadic reports of problems with the new forum system.
In the meantime, we can use the development mailing list…
You can implement a PossibleValuesService (add it to the property via @Service annotation). Your service can read content from anywhere you like. There is an example of reading from a file in the contacts database sample. See IAddress class, where possible values for cities, states and zip codes are pulled from a zip code listing file. Note, however, that a property with a PossibleValuesService maps to a text box with a browse button rather than a drop-down list. No reason we couldn’t support a drop-down list presentation too, except that usability of drop-down lists falls off rapidly as the number of items increases. Get much past a couple of dozen of items and you’d be better off using the browse dialog with its quick filtering facility. We use drop-down list presentation for enums and such, where the item count tends to be on the low side.
If you’d rather see a drop-down list presentation for your scenario, go ahead an open an enhancement request here:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sapphire
- Konstantin
From: Nagarajan Murugesan [mailto:nagarajan.m@xxxxxxxxx]
Sent: Tuesday, May 17, 2011 11:43 PM
To: Konstantin Komissarchik
Subject: Re: Sapphire Dynamic Combo Content Example
Hi Konstantin,
I understand, unfortunately when I try to create a new topic, the page got stuck at
http://www.eclipse.org/forums/index.php?t=login after login....
Thats why I wrote a mail to you... I will post it on the forum once it is resolved.
Thanks,
-Naga
On Tue, May 17, 2011 at 8:53 PM, Konstantin Komissarchik <konstantin.komissarchik@xxxxxxxxxx> wrote:
Hi Naga,
Could you re-post your question on Sapphire forum?
http://www.eclipse.org/forums/index.php/f/192/
One of the goals of Sapphire as an open source project is to maintain open communication channels so that others can benefit from questions and answers.
Thanks for your understanding.
- Konstantin
From: Nagarajan Murugesan [mailto:nagarajan.m@xxxxxxxxx]
Sent: Tuesday, May 17, 2011 2:41 AM
To: Konstantin Komissarchik
Subject: Sapphire Dynamic Combo Content Example
Hi Konstantain,
I am going through the Sapphire examples, I have seen the combo box example, How do I create the combo box contents dynamically (not by hardcoding values in the class itself) by reading it by external file or something.
Can you please help me with a sample?
Thanks for your time
-Naga