Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Sirius default font preferences not respected
Sirius default font preferences not respected [message #1855570] Thu, 20 October 2022 18:10 Go to next message
Louis Detweiler is currently offline Louis DetweilerFriend
Messages: 96
Registered: August 2017
Member
Hello,

We have noticed that not all of the font preferences in Window -> Preferences -> Sirius -> Sirius Diagram -> Appearance are respected when the user presses the "Reset Style Properties to Default Values" button in the appearance section of the properties panel of say a node in a Sirius diagram.

It seems that only the font family is respected, and not the font size, color, or style (bold, etc.)

I have debugged the class ResetStylePropertiesToDefaultValuesCommand and have noticed that, for example for the font color eAttribute in the for loop on line 170, the if statement on line 171 is not entered.

It appears that the font color eAttribute is not contained in the set of eAttributes ViewQuery.CUSTOMIZABLE_GMF_EXCLUSIVE_STYLE_ATTRIBUTES.

Is there anything we could be doing wrong on our end? It seems to me to be a problem with the ViewQuery class but as usual we may be doing something wrong which would lead the font color eAttribute to not be present in the ViewQuery.CUSTOMIZABLE_GMF_EXCLUSIVE_STYLE_ATTRIBUTES set of eAttributes.

Thanks,

Louis
Re: Sirius default font preferences not respected [message #1857143 is a reply to message #1855570] Thu, 19 January 2023 18:21 Go to previous messageGo to next message
Louis Detweiler is currently offline Louis DetweilerFriend
Messages: 96
Registered: August 2017
Member
Anyone have ideas how to solve this?
Re: Sirius default font preferences not respected [message #1857380 is a reply to message #1857143] Thu, 02 February 2023 16:51 Go to previous messageGo to next message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 181
Registered: October 2014
Senior Member
Hi

Effectively as you describe this issue it may be a bug in Sirius.
org.eclipse.sirius.diagram.ui.business.api.query.ViewQuery.isStylePropertyExistingInSiriusStyleModel(EAttribute)
seems to not manage the case of the FONT

I invite you to create a Sirius bugzilla issue(with a reproducible scenario please :) ) so that we can handle this bug

Regards


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Sirius default font preferences not respected [message #1857398 is a reply to message #1857380] Sat, 04 February 2023 04:51 Go to previous message
Louis Detweiler is currently offline Louis DetweilerFriend
Messages: 96
Registered: August 2017
Member
Thanks for your reply.

I have filed a bug report:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=581486
Previous Topic:container nesting
Next Topic:Hiding zorder menu on edges
Goto Forum:
  


Current Time: Mon Sep 25 07:55:51 GMT 2023

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

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

Back to the top