Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Custom Tooltips for Decorators
Custom Tooltips for Decorators [message #901795] Tue, 14 August 2012 15:29 Go to next message
Rob Cernich is currently offline Rob CernichFriend
Messages: 40
Registered: September 2011
Member
Hey all,

Is there a way to create a custom tooltip for a decorator? I'm adding error/warning decorators to shapes and would like to (eventually) provide quick-fix capabilities. That said, my immediate problem is displaying multiple statuses for a single shape.

Any suggestions?

Thanks in advance,
Rob
Re: Custom Tooltips for Decorators [message #901933 is a reply to message #901795] Wed, 15 August 2012 07:10 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Rob,

currently Graphiti only supports strings as tooltips (in general for all
shapes, but also for decorators). There's an open enhancement request to
open that up: https://bugs.eclipse.org/bugs/show_bug.cgi?id=352115.

For now I would suggest to display the error text (in case of more than one
concatenated) as a tooltip on the decorator. The quick fix operation could
also be triggered by registering a quick fix custom feature and adding it to
the speed buttons that appear on hovering over the shape. Does that help
with the multi status thing?

Michael
Re: Custom Tooltips for Decorators [message #902030 is a reply to message #901933] Wed, 15 August 2012 14:47 Go to previous message
Rob Cernich is currently offline Rob CernichFriend
Messages: 40
Registered: September 2011
Member
Hey Michael,

Thanks for the response. I am concatenating the status text together and it doesn't look too bad. (I preface each line with " - " so it doesn't look like a big blob of text.)

Using a custom feature for quick-fix seems like a nice workaround. It will probably be a while before I get that fancy, so I'm good for now (just planning for the future).

Thanks again,
Rob
Previous Topic:Resizing Support
Next Topic:Drag and Drop
Goto Forum:
  


Current Time: Fri Apr 26 14:11:49 GMT 2024

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

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

Back to the top