Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Decoration Tooltip not showing, error or bug ?
Decoration Tooltip not showing, error or bug ? [message #1819351] Mon, 13 January 2020 16:33 Go to next message
Mehdi Belatrous is currently offline Mehdi BelatrousFriend
Messages: 6
Registered: September 2019
Junior Member
I have defined a function in my service which return a string to be used as the decoration tooltip. This function is trigerred when I hover the decoration icon in my diagram node (debugger is stopping and the string is printed with System.out), however this tooltip is never displayed. The node in question is just a container square (LogicalComponent) and the decoration is a generic one, rendering a .ico file.

As I can't see any error in the console, I guess it could be a bug but I also may be missing something. I'm working with Sirius 6.3.0 in Capella Studio 1.4.0

Best regards
Re: Decoration Tooltip not showing, error or bug ? [message #1819582 is a reply to message #1819351] Fri, 17 January 2020 15:02 Go to previous messageGo to next message
Julien Dupont is currently offline Julien DupontFriend
Messages: 172
Registered: July 2009
Senior Member
Hello Medhi,

Indeed it's a bug. I reproduced the problem.
Can you report this bug on https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius ?
I join you a use case to reproduce. It's important to add this use case to the bugzilia issue.

Thank you very much!

Regards,
Re: Decoration Tooltip not showing, error or bug ? [message #1821466 is a reply to message #1819351] Thu, 13 February 2020 12:44 Go to previous message
Mehdi Belatrous is currently offline Mehdi BelatrousFriend
Messages: 6
Registered: September 2019
Junior Member
See here for corresponding ticket.

A workaround was kindly provided (I have not tested it yet).

Quote:

There is a bug in org.eclipse.sirius.diagram.ui.tools.internal.decoration.DescribedDecorationDescriptorProvider.DecorationDescriptorWithLazyTooltip.getTooltipAsString() which use the DDiagramElement instead of the semantic element as parameter.

A possible workaround is changing the service signature with DSemanticDecorator as parameter type and it should works

[Updated on: Thu, 13 February 2020 12:44]

Report message to a moderator

Previous Topic:Filter variable filter
Next Topic:Support for svg shapes
Goto Forum:
  


Current Time: Sat Dec 05 03:45:04 GMT 2020

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

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

Back to the top