Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » AQL query for the "create view" action
AQL query for the "create view" action [message #1715174] Thu, 19 November 2015 19:58 Go to next message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
Hi,

Suppose that I have a node that I need to put it on the diagram canvas and do not update/synchronize the model. I'm trying to do it by using "Create View" in the tool section of the node, but it has a "Container View Expression" part that I don't know what should I write here to point to the current diagram canvas. I have already took a look on [1], but no luck!

Could somebody help me on this please?

Thanks,
Bests,
Parsa

[1] https://www.eclipse.org/sirius/doc/specifier/general/Model_Operations.html#create_view
Re: AQL query for the "create view" action [message #1715755 is a reply to message #1715174] Wed, 25 November 2015 17:10 Go to previous messageGo to next message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
Hi,

can anybody please answer the above question ? Sad

I need to create an element on the diagram without any effect on the EMF model. Sad

Thanks...
Parsa
Re: AQL query for the "create view" action [message #1715870 is a reply to message #1715755] Thu, 26 November 2015 19:53 Go to previous messageGo to next message
C Tran is currently offline C TranFriend
Messages: 15
Registered: July 2014
Junior Member
I believe you have to set the element to be unsynchronized.

Then whatever change is made on one model does not link to its counterpart on the other one.
Re: AQL query for the "create view" action [message #1715920 is a reply to message #1715870] Fri, 27 November 2015 17:06 Go to previous messageGo to next message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
Hi,

Thanks for the answer Smile I already tried "Unsynchronizable" and "Not Synchronized" Sad None of them worked !

Parsa
Re: AQL query for the "create view" action [message #1715997 is a reply to message #1715174] Mon, 30 November 2015 10:06 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Parsa,

Le 19/11/2015 20:58, Parsa Pourali a écrit :
> Hi,
> Suppose that I have a node that I need to put it on the diagram canvas
> and do not update/synchronize the model. I'm trying to do it by using
> "Create View" in the tool section of the node, but it has a "Container
> View Expression" part that I don't know what should I write here to
> point to the current diagram canvas. I have already took a look on [1],
> but no luck!
>
> Could somebody help me on this please?

The container view expression is used to known which view must be the
parent of the view to create. The tools usually have a "somethinView"
variable which belongs to the Sirius internal model and which might be
candidates to contain the new view.

Which tool do you use ?



Le 27/11/2015 18:06, Parsa Pourali a écrit :
> Hi,
>
> Thanks for the answer :) I already tried "Unsynchronizable" and "Not
> Synchronized": None of them worked !
>

The create view operation effect will be visible or not regarding
several aspect:
. the synchronization mode of the current mapping:
. a mapping is concretely synchronized if its synchronization
attribute is set to "Synchronized" but also if it is set to
"Unsynchronizable" with the diagram state set to synchronized
(see state of the corresponding menu: right clic the diagram
background > Unsynchronized menu + Sirius diagram preference
page: synchronized mode for new diagrams)

. a mapping is concretely unsynchronized of its synchronization
attribute is set to "Not Synchronized" but also if it is set
to "Unsynchronizable" with the diagram state set to
Unsynchronized (see state in contextual menu)

. the refresh mode: regarding the combination of the Automatic refresh
preference (Sirius preference) and the force refresh attribute of the
tool: the refresh will be triggered and will compute the semantic
candidates of the concretely synchronized mappings: remove the
duplicates or views which does correspond to the evaluated semantic
candidates of each mapping. If the auto refresh is disabled, and there
is no forced refresh, those views will be removed during the next manual
refresh (tabbar, contextual menu).

>
> Thanks,
> Bests,
> Parsa
>
> [1]
> https://www.eclipse.org/sirius/doc/specifier/general/Model_Operations.html#create_view
>

Regards,


--
Maxime - Obeo

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


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: AQL query for the "create view" action [message #1716148 is a reply to message #1715997] Tue, 01 December 2015 17:06 Go to previous message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
Thanks Maxime for your comprehensive answer !

Bests,
Parsa
Previous Topic:Generic tool does not work
Next Topic:Operation acton: how to get to the semantic element
Goto Forum:
  


Current Time: Thu Apr 25 23:56:29 GMT 2024

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

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

Back to the top