Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Reuse of a Dialog in properties view
Reuse of a Dialog in properties view [message #1785368] Fri, 13 April 2018 05:23 Go to next message
Yann Andenmatten is currently offline Yann AndenmattenFriend
Messages: 13
Registered: April 2018
Junior Member
I have an Edit button next to a list that opens a dialog to edit details of the selected item.

I found in Sirius Specifier Manual / Properties View how to react on the double click in the list with:
aql:onClickEventKind='DOUBLE_CLICK'

So I defined an if statement with that condition.

Is it possible to reuse the whole existing dialog I defined for the Edit button?

Thanks
Yann
Re: Reuse of a Dialog in properties view [message #1785374 is a reply to message #1785368] Fri, 13 April 2018 07:51 Go to previous messageGo to next message
Yann Andenmatten is currently offline Yann AndenmattenFriend
Messages: 13
Registered: April 2018
Junior Member
(sorry wrong manipulation)

[Updated on: Fri, 13 April 2018 08:02]

Report message to a moderator

Re: Reuse of a Dialog in properties view [message #1785404 is a reply to message #1785368] Fri, 13 April 2018 13:46 Go to previous messageGo to next message
Guillaume Coutable is currently offline Guillaume CoutableFriend
Messages: 15
Registered: May 2014
Junior Member

Hello,

Actually it is not possible to reuse a dialog defined in the VSM.

But if you want to reuse dialog content, depending on your need you can:
- Define a group once in a dialog and reuse it in the page of the other dialog. (recommended if your dialog has only one group)
- Create a Category, define your page with groups inside. In your dialogs, make the page extends the one defined in the category.
With this method the page defined in the category will be displayed in the properties view. But you can use the "Precondition expression" field with an expression that return 'false' (like aql:false) for the page defined in the category (1) and an expression that return 'true' (like aql:true) for the page defined in dialogs (2).
index.php/fa/32607/0/


Regards,
Guillaume C.


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

[Updated on: Fri, 13 April 2018 13:56]

Report message to a moderator

Re: Reuse of a Dialog in properties view [message #1785448 is a reply to message #1785404] Fri, 13 April 2018 18:55 Go to previous message
Yann Andenmatten is currently offline Yann AndenmattenFriend
Messages: 13
Registered: April 2018
Junior Member
I never used before the extends feature, it seems easy. And thanks for the tip about playing with aql:true/false in precondition, sounds useful.
Previous Topic:Update the node model (INode) xText
Next Topic:cannot open update site for ObeoNetwork/BPMN-Designer
Goto Forum:
  


Current Time: Tue Apr 16 18:23:02 GMT 2024

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

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

Back to the top