Bug 95634 - [Tree] TreeColumn misses tooltips
Summary: [Tree] TreeColumn misses tooltips
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 3.2 RC2   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords: polish
: 117223 129517 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-17 15:14 EDT by Benjamin Pasero CLA
Modified: 2006-04-21 14:53 EDT (History)
9 users (show)

See Also:


Attachments
From Java Browsing Perspective (5.32 KB, image/gif)
2006-02-16 16:25 EST, Richard Kulp CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Pasero CLA 2005-05-17 15:14:02 EDT
Hi,

as far as I can see, the TreeColumn is not showing a "..." in case its width
becomes smaller than its contents. In addition it is not showing a Tooltip with
the Full Content either.

I looked at Thunderbird, which supports this behaviour.

I thought the Tree would behave similiar to the Table.

Ben
Comment 1 Benjamin Pasero CLA 2005-05-17 15:16:48 EDT
Snippet showing the problem:

public class Main {
  public static void main(String[] args) {
    Display display = new Display();
    Shell shell = new Shell(display);
    shell.setLayout(new FillLayout());

    Tree tree = new Tree(shell, SWT.NONE);
    TreeColumn col = new TreeColumn(tree, SWT.NONE);
    new TreeItem(tree, SWT.NONE).setText("Hello World Hello World Hello World");

    col.setWidth(50);

    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
  }
}

Ben
Comment 2 Steve Northover CLA 2005-05-19 09:41:40 EDT
Post 3.1.
Comment 3 Markus Keller CLA 2005-06-30 08:26:19 EDT
Only the first column does not show the ellipsis. 2nd and later columns do end
in "...".

Tooltip hovers are missing for all columns, which makes e.g the Properties view
fairly hard to use when labels are wider than the viewport.
Comment 4 Mik Kersten CLA 2005-11-20 15:24:45 EST
*** Bug 117223 has been marked as a duplicate of this bug. ***
Comment 5 Mik Kersten CLA 2006-02-06 13:27:52 EST
Is there a target milestone for this?  I assume that it is known, but not yet noted here, that the Problems view is now missing tooltips for this reason as well.
Comment 6 Steve Northover CLA 2006-02-06 14:16:43 EST
I wasn't planning to do this for 3.2.  CAn the problems view revert to using a table like it did for 3.1?
Comment 7 Michael Van Meekeren CLA 2006-02-06 15:24:19 EST
tod could you answer comment #6 ?
Comment 8 Tod Creasey CLA 2006-02-06 15:34:35 EST
No - we have significant features that are using this tree.
Comment 9 Steve Northover CLA 2006-02-06 15:38:34 EST
Ok, but tree has similar functionality as table provided you don't create any children.
Comment 10 Tod Creasey CLA 2006-02-06 15:53:00 EST
We are using a hierarchy so we need the Tree. It is not a TableTree we are using if that is the issue.
Comment 11 Mik Kersten CLA 2006-02-06 16:25:20 EST
I'm using a tree with columns for Mylar's task list, and have had to work around this with a custom tooltip provider that opens up a new shell to show a tooltip.  But there have been several reports filed about our custom tooltips not being consistent with the ones on regular tables and trees (that come from the OS I think).  So I don't recommend this approach and hope the functionality does get considered for 3.2 and am voting for this bug.
Comment 12 Richard Kulp CLA 2006-02-06 16:35:03 EST
The property sheet has the same problem. There are two columns in a property sheet, the name of the property and the value of the property. The property sheet is often narrow and tall. This causes the columns to narrow and the property names are often truncated. For these it is essential to have the full column item value displayed in the tooltip. Also it must be a tree because there are nested properties.
Comment 13 Markus Keller CLA 2006-02-07 04:27:30 EST
Same for the Error Log.
Comment 14 Michael Van Meekeren CLA 2006-02-07 07:32:37 EST
I'm voting for this bug too, Steve can you reconsider?
Comment 15 Richard Kulp CLA 2006-02-16 16:25:38 EST
Created attachment 34877 [details]
From Java Browsing Perspective

Were any changes made for this because I have something weird happening? Attached is a picture from the Java Browsing Perspective of the Type View. I'm getting "..." when I shouldn't. Or this being done by JDT UI itself?

The Eclipse build is  I20060131-1200 on Windows
Comment 16 Steve Northover CLA 2006-02-16 18:53:21 EST
The widget in the screen shot is a table, not a tree.  The bug you are seeing is likely bug 123466.  If you are still seeing it in the latest (and I mean tonight's nightly build if we want any chance of fixing it for M5, reopen bug 123466.  Even then, it's seems too late)
Comment 17 Tod Creasey CLA 2006-03-02 10:05:39 EST
*** Bug 129517 has been marked as a duplicate of this bug. ***
Comment 18 Beatriz Iaderoza CLA 2006-03-31 10:57:37 EST
Re-verified by Z for M6 (20063103), this problem still appears in M6, no (...) and no tooltip. It happens with and without the manifest.
Comment 19 Steve Northover CLA 2006-03-31 11:01:02 EST
Z, it's also not marked FIXED.
Comment 20 Michael Van Meekeren CLA 2006-04-05 16:59:08 EDT
this item is on the polish list for 3.2, will it be fixed for 3.2?
Comment 21 Eugene Kuleshov CLA 2006-04-05 17:04:02 EDT
(In reply to comment #20)
> this item is on the polish list for 3.2, will it be fixed for 3.2?

Polish? You must be kidding. This is a serious usability issue, especially because number of standard Eclipse views converted to table-tree widgets and now you can't see whole descriptions in any of those. Most critical ones are Problems and History view. Mylar plugin has the same trouble.

Comment 22 Steve Northover CLA 2006-04-05 17:27:15 EDT
Some platforms don't have free hover help.  Only the Windows table and tree with no columns does this.  The other platforms must be unusable then. <g>

I am looking into fixing this.  I'll let you know when I have more.
Comment 23 Steve Northover CLA 2006-04-20 12:01:18 EDT
Ok, I have a fix for the missing tooltips but not for the "...".  I'm going to change the title of this bug report to reflect the fix and enter a new bug report for the unfixed part.
Comment 24 Steve Northover CLA 2006-04-20 12:03:23 EDT
Fixed > 20060420
Comment 25 Eugene Kuleshov CLA 2006-04-20 12:08:40 EDT
(In reply to comment #23)
> Ok, I have a fix for the missing tooltips but not for the "...".  I'm going to
> change the title of this bug report to reflect the fix and enter a new bug
> report for the unfixed part.

Steve, what is the new bug number?
Comment 26 Steve Northover CLA 2006-04-20 12:09:54 EDT
I haven't entered it yet ... I'm still typing in this one!
Comment 27 Steve Northover CLA 2006-04-20 12:14:39 EDT
The new bug is bug #137772.
Comment 28 Markus Keller CLA 2006-04-21 14:53:56 EDT
Cool, thanks! Works nice in N20060421-0010.
[Setting target milestone to 3.2RC2.]