Skip to main content



      Home
Home » Eclipse Projects » Sirius » Container Child Attribute Visualization
Container Child Attribute Visualization [message #1742852] Thu, 08 September 2016 04:52 Go to next message
Eclipse UserFriend
Hello,

I have the following situation:

With the panel I want to be able to add an attribute "X" to my Container "Circle" as well as to the Sub-Node "Square". But I only want the attribute of the Container to be visualized. The attribute of the Sub-Node should not be visible.

My .odesign-file looks like this:

Container "Circle"
> Bordered Attribute "X"
-> Workspace Image X
> Sub-Node "Square"
-> Bordered Attribute "X"

So I just didn't add an Image for the Sub-Node's Attribute "X".

When I try my editor out, I add one Attribute "X" to the Container and one Attribute "X" to the Sub-Node. The Container's Attribute is visualized on the border as wanted. But the Sub-Node's Attribute also shows (which I dont want), it is depicted outside of my container. I marked it with an arrow in the picture below.

Is it a matter of the "Semantic Cantidates Expression"?
At the moment I filled this field with the following:
Container: (left empty)
Container's Attribute X: feature:eAllContents
Sub-Node: feature:eAllContents
Sub-Node's Attribute X: feature:eAllContents

I hope, you can help me.
Kind regards,
Xing


Re: Container Child Attribute Visualization [message #1742889 is a reply to message #1742852] Thu, 08 September 2016 08:35 Go to previous messageGo to next message
Eclipse UserFriend
Hello

Quote:
Is it a matter of the "Semantic Cantidates Expression"?
Even if using eAllContents is not optimized, it is correct. Only elements of the right "Domain class" will be considered.
You problem seems to be that the bordered of the sub node is badly positioned.

You can open a bug https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius. Please provide all necessary stuff so that we can reproduce the bug (odesign on ecore Meta model for example)

Regards
Laurent

[Updated on: Thu, 08 September 2016 08:37] by Moderator

Re: Container Child Attribute Visualization [message #1742981 is a reply to message #1742889] Fri, 09 September 2016 00:00 Go to previous message
Eclipse UserFriend
Hello Laurent,

thank you very much for your fast reply and help.
I now solved the problem by setting the Container's Attribute's Semantic Candidate Expression to feature:eContents.

Regards
Xing


Previous Topic:Problem with reference to the metamodel when implementing Java Service
Next Topic:Change Context silently fails when navigating to EObject in different resource
Goto Forum:
  


Current Time: Thu Mar 27 23:06:23 EDT 2025

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

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

Back to the top