DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page To create resizable tooltip
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Default To create resizable tooltip - 06-25-2009, 04:46 AM

Hello,

Can anyone help me, how to create a tooltip similar to the one shown in Eclipse IDE when you hover your mouse to any Java element? That is, I want the tooltip to be resizable. I am using jface tooltip but I can't see any methods/ways to set the tooltip to be resizable.

Thanks,
Divya
Reply With Quote
  (#2 (permalink)) Old
Active Contributor
 
Posts: 62
Thanks: 0
Thanked 6 Times in 6 Posts
Join Date: Jun 2009
Default 06-29-2009, 03:28 AM

Hi Divya,

I have also met this kind of problem before. When I set Text for ToolTip, I can't resize them and all the things, just can display in one row and they are very long by the way.
Then I did some general fix on the GUI of the project, Before SetToolTipText(String text), i handled the text information, i inserted ‘\n’ for each 50 chars, then made these text wrap. That's a kind of way to resize them indirectly. And I think the effects were good.

Wish it could be helpful.


www.eclaxy.com
let's perfect the eclipse!
Reply With Quote
  (#3 (permalink)) Old
Active Contributor
 
Posts: 62
Thanks: 0
Thanked 6 Times in 6 Posts
Join Date: Jun 2009
Default 06-29-2009, 03:34 AM

Hi Divya,

I have also met this kind of problem before. When I set Text for ToolTip, I can't resize them and all the things, just can display in one row and they are very long by the way.
Then I did some general fix on the GUI of the project, Before SetToolTipText(String text), i handled the text information, i inserted ‘\n’ for each 50 chars, then made these text wrap. That's a kind of way to resize them indirectly. And I think the effects were good.

Wish it could be helpful.


www.eclaxy.com
let's perfect the eclipse!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SWT: How to create a Custom project sdpolke Eclipse 1 06-18-2009 05:54 AM
How to create multiple instances of one ViewPart anirudh_kaki@yahoo.com Eclipse 2 05-25-2009 04:59 AM
[EMF-RCP] Create Marker on a EObject Neatsoul Eclipse 2 02-03-2009 03:59 AM
Create modalpopup in javascript ashfk .NET 0 10-31-2008 02:00 AM
Create new row in TableViewer by tabbing CBMMelb Eclipse 0 09-13-2008 11:40 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com