[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

Thank you for your info.

May you send a example shortly.

Thank you very much


"Francis Upton" <francisu@xxxxxxxx>, haber iletisinde sunlari 
yazdi:fma2gb$bua$2@xxxxxxxxxxxxxxxxxxxx
> Do a viewer.setInput(<your root>) instead of manipulating the SWT 
> directly.  You should not need to touch the underlying SWT tree nor create 
> TreeItems.  The viewer will work directly with your objects.
>
> Cenk Dundar wrote:
>> 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.
>>