Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Tool tip label allways shows ELLIPSIS
Tool tip label allways shows ELLIPSIS [message #184019] Thu, 09 June 2005 12:01 Go to next message
Steve Jones is currently offline Steve JonesFriend
Messages: 95
Registered: July 2009
Member
Hi,

I'm running eclipse/GEF 3.1M7.

I use standard labels for tool tips. The tooltip displays as expected and
shows 99% of the text but it's allways ends with '...'.

Looking at Label#getSubStringText() at line:

int widthShrink = getPreferredSize().width - getSize().width;

widthShrink is allways 2, ie the prefarred width is two greater that the
bounds. This results in the text being clipped and ellipses being added.

I've just run up the red book Workflow Model demo (SAL330) and it's tool
tips show the same problem.

Any ideas?

Steve.
Re: Tool tip label allways shows ELLIPSIS [message #184097 is a reply to message #184019] Fri, 10 June 2005 19:47 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

On Linux? That's probably because of this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=94523

If you're seeing this on Windows as well, open a new bug report against GEF.
If you can provide a small snippet showing the problem in the Draw2d label
that would be great.

"Steve Jones" <steve@istech.demon.co.uk> wrote in message
news:d89b27$qie$1@news.eclipse.org...
> Hi,
>
> I'm running eclipse/GEF 3.1M7.
>
> I use standard labels for tool tips. The tooltip displays as expected and
> shows 99% of the text but it's allways ends with '...'.
>
> Looking at Label#getSubStringText() at line:
>
> int widthShrink = getPreferredSize().width - getSize().width;
>
> widthShrink is allways 2, ie the prefarred width is two greater that the
> bounds. This results in the text being clipped and ellipses being added.
>
> I've just run up the red book Workflow Model demo (SAL330) and it's tool
> tips show the same problem.
>
> Any ideas?
>
> Steve.
>
Previous Topic:Logic example uses deprecated IPluginDescriptor
Next Topic:Layers and Figure Selection
Goto Forum:
  


Current Time: Fri Dec 13 02:50:12 GMT 2024

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

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

Back to the top