Rob Cernich 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.
Michael Wenz Messages: 1267 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?
Rob Cernich 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).