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:
https://www.eclipse.org/forums/index.php/m/1771883/?srch=hide+diagram+element#msg_1771883
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
Hi,

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 : https://www.eclipse.org/acceleo/documentation/aql.html#MigratingfromMTLqueries
If this is difficult for you, you can do it with pure JAVA code with a service: https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods

Regards,


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


Current Time: Wed Oct 23 01:05:38 GMT 2019

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

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

Back to the top