Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to get a control from a specific column of a TableTreeItem ?
How to get a control from a specific column of a TableTreeItem ? [message #446681] Tue, 30 November 2004 15:03 Go to next message
bbskill is currently offline bbskillFriend
Messages: 26
Registered: July 2009
Junior Member
hello all !
I used a TableTreeEditor to add a control to a cloumn of a TableTreeItem.
editor.setEditor(control,item,Column);

Then How can I get recover the control giving the editor and the item
and the column directly,
but not through event listener?
That means the the composite which the Control displayed above is not
being edited.
so I can't use editor.getEditor() to get the control.

anyone can help me ?
Thank you for any help !
Re: How to get a control from a specific column of a TableTreeItem ? [message #446688 is a reply to message #446681] Tue, 30 November 2004 16:19 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
For the currently active control, you can use TableTreeEditor.getEditor().

If you are using TableTreeEditor for multiple columns and multiple controls,
you will have to remember somewhere which Control is used to edit which
column. After you call TableTreeEditor.setEditor(null), TableTreeEditor has
no knowledge of the control you just removed.


"bbskill" <bbkills@tom.com> wrote in message
news:coi275$j3q$1@www.eclipse.org...
> hello all !
> I used a TableTreeEditor to add a control to a cloumn of a TableTreeItem.
> editor.setEditor(control,item,Column);
>
> Then How can I get recover the control giving the editor and the item
> and the column directly,
> but not through event listener?
> That means the the composite which the Control displayed above is not
> being edited.
> so I can't use editor.getEditor() to get the control.
>
> anyone can help me ?
> Thank you for any help !
Re: How to get a control from a specific column of a TableTreeItem ? [message #446736 is a reply to message #446688] Thu, 02 December 2004 00:03 Go to previous messageGo to next message
bbskill is currently offline bbskillFriend
Messages: 26
Registered: July 2009
Junior Member
But if the control is not currently active .
what I want to do is to dynamicaly update a
progressBar in a specific column of a specific TableTreeItem of a
TableTree.
any way to get the control ?


Veronika Irvine wrote:
> For the currently active control, you can use TableTreeEditor.getEditor().
>
> If you are using TableTreeEditor for multiple columns and multiple controls,
> you will have to remember somewhere which Control is used to edit which
> column. After you call TableTreeEditor.setEditor(null), TableTreeEditor has
> no knowledge of the control you just removed.
>
>
> "bbskill" <bbkills@tom.com> wrote in message
> news:coi275$j3q$1@www.eclipse.org...
>
>>hello all !
>>I used a TableTreeEditor to add a control to a cloumn of a TableTreeItem.
>>editor.setEditor(control,item,Column);
>>
>>Then How can I get recover the control giving the editor and the item
>>and the column directly,
>>but not through event listener?
>>That means the the composite which the Control displayed above is not
>>being edited.
>>so I can't use editor.getEditor() to get the control.
>>
>>anyone can help me ?
>>Thank you for any help !
>
>
>
Re: How to get a control from a specific column of a TableTreeItem ? [message #446756 is a reply to message #446736] Thu, 02 December 2004 13:49 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You will need to track the non-active controls yourself.

"bbskill" <bbkills@tom.com> wrote in message
news:colmjh$5vk$1@www.eclipse.org...
> But if the control is not currently active .
> what I want to do is to dynamicaly update a
> progressBar in a specific column of a specific TableTreeItem of a
> TableTree.
> any way to get the control ?
>
>
> Veronika Irvine wrote:
>> For the currently active control, you can use
>> TableTreeEditor.getEditor().
>>
>> If you are using TableTreeEditor for multiple columns and multiple
>> controls, you will have to remember somewhere which Control is used to
>> edit which column. After you call TableTreeEditor.setEditor(null),
>> TableTreeEditor has no knowledge of the control you just removed.
>>
>>
>> "bbskill" <bbkills@tom.com> wrote in message
>> news:coi275$j3q$1@www.eclipse.org...
>>
>>>hello all !
>>>I used a TableTreeEditor to add a control to a cloumn of a TableTreeItem.
>>>editor.setEditor(control,item,Column);
>>>
>>>Then How can I get recover the control giving the editor and the item
>>>and the column directly,
>>>but not through event listener?
>>>That means the the composite which the Control displayed above is not
>>>being edited.
>>>so I can't use editor.getEditor() to get the control.
>>>
>>>anyone can help me ?
>>>Thank you for any help !
>>
>>
Previous Topic:CoolBars
Next Topic:[TreeViewer] Force update
Goto Forum:
  


Current Time: Fri Apr 19 16:15:30 GMT 2024

Powered by FUDForum. Page generated in 0.03390 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top