Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Hiding duplicate element(Hiding duplicate element)
Hiding duplicate element [message #1802518] Mon, 11 February 2019 09:54 Go to next message
Arya L is currently offline Arya LFriend
Messages: 3
Registered: February 2019
Junior Member
Hello all,

I have one state machine with pseudo state, states, final state and transitions. On my diagram I have two final states one that comes from node that I created called "State" and one from "FinalState". I want to hide one Final State automatically (currently at the end of my machine I have two the same states)

How should I do it?

1. I have already searched forum and topcis connected to that problem. I have found this:
But find it unfriendly because I am still beginner. Where should I put that code and how to call it, how to add a changecontext operation in tool?

2. Second option that I have tried is Conditional Style where I would create special style for my FinalState that is also in metamodel part of states (uml.state) and delete FinalState (uml.finalstate). I don't know how should I write condition. I have tried aql:uml::FinalNode but it just selects all nodes...
Is this idea possible at all?

btw. I shouldn't change my metamodel.

I hope someone can help me. Thank you.
Re: Hiding duplicate element [message #1803000 is a reply to message #1802518] Wed, 20 February 2019 14:18 Go to previous message
Pierre Guilet is currently offline Pierre GuiletFriend
Messages: 250
Registered: June 2017
Senior Member

The problem is related to your State node mapping defined in VSM.
Your associated Semantic Candidate expression should not return the semantic element that is considered as a final state.
So it is there that you should have the right AQL expression or Java service that return the collection of model elements that should be considered as State only. You have quick help next to mapping fields with ? icon to know what should be returned.

To do it in AQL I suggest that you read the documentation :
If this is difficult for you, you can do it with pure JAVA code with a service:


Pierre Guilet - Obeo
Need training or professional services for Sirius?
Previous Topic:diagram layout with ELK
Next Topic:Problem when copying model elements using EcoreUtil
Goto Forum:

Current Time: Mon Jan 25 02:32:02 GMT 2021

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

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

Back to the top