[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] Re: Set items to ComboBoxCellEditor
|
- From: swetha@xxxxxxxxxxx (sania)
- Date: Thu, 31 May 2007 06:48:09 +0000 (UTC)
- Newsgroups: eclipse.platform
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hi Tom
Thanks for the reply..
How can I get the instance of the celleditor in the getCellEditor(Object)
method because if I have to set the items to the cell editor I should have
the instance of the celleditor.
Moreover, I can know the number of comboeditor only at runtime because I
am taking the values after parsing a xml file.Same is the case with the
listofitems to be set also..
Here is a snippet of what I am using
protected PropertyCellEditor getCellEditor(Object element)
{
if(element instanceof Property)
{
Property prop=(Property)element;
String control=prop.getControl();
if(control.equalsIgnoreCase("Combo"))
{
return delegatingComboEditor;
}
}
}
In the above code Property is my Model.
For example if I have created 2 combocelleditors , and have two string
arrays for these editors,how can I get the instance of the first
celleditor here???
Thanks
Sania