[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: Auto filtred tree like Create New Project action in Eclipse
|
I could add a FilteredTree in my comosite this like
FilteredTree filteredTree = new FilteredTree(parent, SWT.SINGLE
| SWT.H_SCROLL | SWT.V_SCROLL, new PatternFilter());
It is ok. But I couldnt any tree item in the filtredtree. I wote this code
to add a tree item
TreeViewer viewer = filteredTree.getViewer();
TreeItem ti = new TreeItem(viewer.getTree(), SWT.NONE);
ti.setText("new item");
When I run the application, FilteredTree appear but Added tree item not
appear.
What is the problem. How can I add a tree item to filteredtree?
Thank You
"Francis Upton" <francisu@xxxxxxxx>, haber iletisinde sunlari
yazdi:fm8chg$48b$2@xxxxxxxxxxxxxxxxxxxx
> This might be what you want:
>
> FilteredResourceSelectionDialog
>
>
> Cenk Dundar wrote:
>> Hello
>> I want to add a auto filtered composite like 'Create New Project' in
>> eclipse. Eclipse is use auto filter composite in a lot of place.
>> you know that, In this composite
>> There is a text widget above of the tree and when text is edit, tree is
>> filtered for text widget value.
>>
>> How can I do this. Where can I find a example.
>>
>> Thank you for your help.