Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Why TableTree widget is deprecated in Eclipse 3.1?
Why TableTree widget is deprecated in Eclipse 3.1? [message #460551] Wed, 31 August 2005 15:06 Go to next message
Xiaonan Jiang is currently offline Xiaonan JiangFriend
Messages: 14
Registered: July 2009
Junior Member
Hi,

Anyone knows why TableTree widget is deprecated in Eclipse 3.1?
Tree is suggested to replace TableTree. But Tree does not cover all the
features of the TableTree widget.

Thanks.
- Xiaonan
Re: Why TableTree widget is deprecated in Eclipse 3.1? [message #460559 is a reply to message #460551] Wed, 31 August 2005 16:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

What features are missing?

Xiaonan Jiang wrote:
> Hi,
>
> Anyone knows why TableTree widget is deprecated in Eclipse 3.1?
> Tree is suggested to replace TableTree. But Tree does not cover all the
> features of the TableTree widget.
>
> Thanks.
> - Xiaonan
>
>

--
Thanks,
Rich Kulp
Re: Why TableTree widget is deprecated in Eclipse 3.1? [message #460563 is a reply to message #460559] Wed, 31 August 2005 16:26 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
The functionality was somewhat limited. For example, the tree stuff couldn't be re-ordered in the table (the first column only could have the tree in it). Additionally, there were some OS-specific issues, such as Windows only allowing an image in the first column.

You can use the TreeColumn now, which allows for other possibilities including column reordering.

Search for "Native tree with columns" in the "What's new in 3.1" page at
http://help.eclipse.org/help31/topic/org.eclipse.platform.do c.user/whatsNew/platform_whatsnew.html
Re: Why TableTree widget is deprecated in Eclipse 3.1? [message #460567 is a reply to message #460563] Wed, 31 August 2005 16:55 Go to previous messageGo to next message
Xiaonan Jiang is currently offline Xiaonan JiangFriend
Messages: 14
Registered: July 2009
Junior Member
Thanks for the link. I got the info I needed.


"Alex Blewitt" <alex_blewitt@yahoo.com> wrote in message
news:27437851.1125505638547.JavaMail.root@cp1.javalobby.org...
> The functionality was somewhat limited. For example, the tree stuff
couldn't be re-ordered in the table (the first column only could have the
tree in it). Additionally, there were some OS-specific issues, such as
Windows only allowing an image in the first column.
>
> You can use the TreeColumn now, which allows for other possibilities
including column reordering.
>
> Search for "Native tree with columns" in the "What's new in 3.1" page at
>
http://help.eclipse.org/help31/topic/org.eclipse.platform.do c.user/whatsNew/platform_whatsnew.html
Re: Why TableTree widget is deprecated in Eclipse 3.1? [message #460604 is a reply to message #460559] Thu, 01 September 2005 06:18 Go to previous messageGo to next message
Uwe Peuker is currently offline Uwe PeukerFriend
Messages: 16
Registered: July 2009
Junior Member
Hello Rich,

I have changed all my TableTrees to Trees, but I am missing one feature:
I haven't found I thing like TableLayout to layout the columns of the Tree
without giving them fixed sizes.

Uwe

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> schrieb im Newsbeitrag
news:df4kpg$fo2$2@news.eclipse.org...
> What features are missing?
>
> Xiaonan Jiang wrote:
>> Hi,
>>
>> Anyone knows why TableTree widget is deprecated in Eclipse 3.1?
>> Tree is suggested to replace TableTree. But Tree does not cover all the
>> features of the TableTree widget.
>>
>> Thanks.
>> - Xiaonan
>>
>>
>
> --
> Thanks,
> Rich Kulp
Re: Why TableTree widget is deprecated in Eclipse 3.1? [message #460621 is a reply to message #460604] Thu, 01 September 2005 18:08 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
TableLayout actually has many deficiencies and only sets the column widths
once - something you can easily do yourself in a resize listener:

tree.addControlListener(new ControlAdapter() {
public void controlResized(ControlEvent e) {
Rectangle area = tree.getClientArea();
TreeColumn[] columns = tree.getColumns();
if (area.width > 0 && columns[0].getWidth() == 0) {
columns[0].setWidth(area.width * 40 / 100);
columns[1].setWidth(area.width - columns[0].getWidth() -
4);
tree.removeControlListener(this);
}
}
});

Alternately, you can resize the columns dynamically as shown in this snippet
(written for Table but easily modified for Tree):

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet77.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup

"Uwe Peuker" <Uwe.Peuker@bitctrl.de> wrote in message
news:df66fq$9c6$1@news.eclipse.org...
> Hello Rich,
>
> I have changed all my TableTrees to Trees, but I am missing one feature:
> I haven't found I thing like TableLayout to layout the columns of the Tree
> without giving them fixed sizes.
>
> Uwe
>
> "Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> schrieb im Newsbeitrag
> news:df4kpg$fo2$2@news.eclipse.org...
>> What features are missing?
>>
>> Xiaonan Jiang wrote:
>>> Hi,
>>>
>>> Anyone knows why TableTree widget is deprecated in Eclipse 3.1?
>>> Tree is suggested to replace TableTree. But Tree does not cover all the
>>> features of the TableTree widget.
>>>
>>> Thanks.
>>> - Xiaonan
>>>
>>>
>>
>> --
>> Thanks,
>> Rich Kulp
>
>
Previous Topic:Using Firefox in SWTBrowser
Next Topic:FormLayout: prevent Text-fields from resizing horizontally
Goto Forum:
  


Current Time: Thu Apr 18 16:05:13 GMT 2024

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

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

Back to the top