Skip to main content



      Home
Home » Eclipse Projects » Sirius » Authorized Sides missing at Conditional Style
Authorized Sides missing at Conditional Style [message #1743653] Sun, 18 September 2016 05:09 Go to next message
Eclipse UserFriend
Hello

When I want to set the layout of a Bordered Node adding a workspace image straight to the Diagram Element (Bordered Node > Workspace Image) I get the following option:
Bordered Node > Properties View > Advanced > Authorized Sides: WEST / SOUTH / EAST / NORTH

This is great! Exactly, what I need.

But when I want want to set the layout of a Bordered Node adding a workspace image to a Conditional Style first (Bordered Node > Conditional Style > Workspace Image)
this option of choosing WEST / SOUTH / EAST / NORTH is not there.

Is there a way of getting this option back? It would be really useful!

Thanks
Xing
Re: Authorized Sides missing at Conditional Style [message #1743789 is a reply to message #1743653] Mon, 19 September 2016 11:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Qi,

It seems you find a bug, could you report it on https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius ?
I fast checked the code and the bug seems to be present for all kind of node styles, as soon as they are placed in a conditional style.

The only workaround I see is to modify the odesign model in a text editor:
. look for the border node mapping declaration corresponding to your mapping id and add the forbidden sides (note that we serialize the inverse choice than the displayed options)

<borderedNodeMappings name="yourId" .... >
<conditionnalStyles predicateExpression="zdezd">
<style xsi:type="style:WorkspaceImageDescription" sizeComputationExpression="-1" labelPosition="node" resizeKind="NSEW">
<borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
<labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
<forbiddenSides>WEST</forbiddenSides>
<forbiddenSides>SOUTH</forbiddenSides>
<forbiddenSides>EAST</forbiddenSides>
<forbiddenSides>NORTH</forbiddenSides>
</style>
</conditionnalStyles>
</borderedNodeMappings>


Regards

Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Re: Authorized Sides missing at Conditional Style [message #1743963 is a reply to message #1743789] Wed, 21 September 2016 03:34 Go to previous messageGo to next message
Eclipse UserFriend
Hello Maxime,

thank you.
I reported it.

Regards
Xing
Re: Authorized Sides missing at Conditional Style [message #1744225 is a reply to message #1743963] Fri, 23 September 2016 09:02 Go to previous message
Eclipse UserFriend
Hi Xi,

Thanks for the bug report (Bug 501883).
It has been corrected on master for Sirius 4.1.0 and the bugzilla has been marked as candidate for backport for the 4.0.x maintenance branch.

Regards;

Maxime
Previous Topic:Autoresize - keep aspect ratio
Next Topic:Ecore automatically imported and displayed
Goto Forum:
  


Current Time: Mon Mar 17 01:58:24 EDT 2025

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

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

Back to the top