Question about FilteredItemsSelectionDialog [message #323638] |
Fri, 04 January 2008 16:19 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
I'm writing a dialog that extends
org.eclipse.ui.dialogs.FilteredItemsSelectionDialog and I have a
requirement to pre-select items in the list. I see that I can call
setInitialSelections() inherited from
org.eclipse.ui.dialogs.SelectionDialog but it appears that is not used
by FilteredItemsSelectionDialog.
Is there any way to set the selection of the viewer in
FilteredItemsSelectionDialog?
TIA,
Eric
|
|
|
|
Re: Question about FilteredItemsSelectionDialog [message #323741 is a reply to message #323655] |
Mon, 07 January 2008 15:36 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Francis Upton wrote:
> Off the top of my head, I would create a subclass and override
> createDialogArea, and then just call setSelection() to whatever value
> the initial selection is set to since the viewer is up at that point.
The TableViewer is private with no getter method, so a subclass has no
reference to it.
> I would also file a bug on this; the FilteredItemsSelectionDialog should
> respect this.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=214491
> Eric Rizzo wrote:
>> I'm writing a dialog that extends
>> org.eclipse.ui.dialogs.FilteredItemsSelectionDialog and I have a
>> requirement to pre-select items in the list. I see that I can call
>> setInitialSelections() inherited from
>> org.eclipse.ui.dialogs.SelectionDialog but it appears that is not used
>> by FilteredItemsSelectionDialog.
>> Is there any way to set the selection of the viewer in
>> FilteredItemsSelectionDialog?
>>
>> TIA,
>> Eric
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03152 seconds