Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Any simple way to made the width of a table or tree column fit the content?
Any simple way to made the width of a table or tree column fit the content? [message #317486] Wed, 04 July 2007 17:16 Go to next message
Eclipse UserFriend
Originally posted by: ku_long.hotmail.com

Hey,

Is there any simple way to made a TableColumn or a TreeColumn's
width fit the content? Currently, I use the pack() method, it
seems ok for most of the cases, but the longest content still can
not be fitted automatically. I still get "..." at the end of
the cell which has the longest content. Anyone can help me?

Thank.
Re: Any simple way to made the width of a table or tree column fit the content? [message #317501 is a reply to message #317486] Thu, 05 July 2007 09:55 Go to previous messageGo to next message
Eclipse UserFriend
pack() is the correct way to do what you want. Are you getting the "..." in
the first column only or in others as well? If it's the first column only
then you're seeing https://bugs.eclipse.org/bugs/show_bug.cgi?id=118844
which should be fixed during the 3.4 timeframe.

Grant

"Raymond" <ku_long@hotmail.com> wrote in message
news:efb3bfe82a785eea385a8b9491872699$1@www.eclipse.org...
> Hey,
>
> Is there any simple way to made a TableColumn or a TreeColumn's
> width fit the content? Currently, I use the pack() method, it
> seems ok for most of the cases, but the longest content still can
> not be fitted automatically. I still get "..." at the end of
> the cell which has the longest content. Anyone can help me?
>
> Thank.
>
Re: Any simple way to made the width of a table or tree column fit the content? [message #317506 is a reply to message #317501] Thu, 05 July 2007 10:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ku_long.hotmail.com

Grant Gayed wrote:

> pack() is the correct way to do what you want. Are you getting the "..." in
> the first column only or in others as well? If it's the first column only
> then you're seeing https://bugs.eclipse.org/bugs/show_bug.cgi?id=118844
> which should be fixed during the 3.4 timeframe.

> Grant

yes, I got the "..." in the first column only. Do you mean
it will be fixed in eclipse 3.4? :-)
Re: Any simple way to made the width of a table or tree column fit the content? [message #317637 is a reply to message #317506] Tue, 10 July 2007 15:29 Go to previous message
Eclipse UserFriend
> yes, I got the "..." in the first column only. Do you mean
> it will be fixed in eclipse 3.4? :-)

it should be
Previous Topic:Failing tests on Linux x86 (gtk) for Eclipse 3.3M3
Next Topic:TextEditor highlight its current line. How and where it does it?
Goto Forum:
  


Current Time: Sat May 03 07:22:00 EDT 2025

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

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

Back to the top