Skip to content

Commit

Permalink
[test] Leverage the multiple selection dialog in Papaya to import mul…
Browse files Browse the repository at this point in the history
…tiple types

Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
  • Loading branch information
sbegaudeau committed Oct 11, 2024
1 parent cec6736 commit 5785ec8
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public NodeTool getNodeTool(IViewDiagramElementFinder cache) {
var dialogDescription = new DiagramBuilders().newSelectionDialogDescription()
.selectionMessage("Select the types to import")
.selectionDialogTreeDescription(treeDescription)
.multiple(true)
.build();

var ifClass = new ViewBuilders().newIf()
Expand Down Expand Up @@ -103,10 +104,16 @@ public NodeTool getNodeTool(IViewDiagramElementFinder cache) {
new ViewBuilders().newChangeContext()
.expression("aql:self")
.children(
ifClass,
ifInterface,
ifRecord,
ifEnum
new ViewBuilders().newFor()
.expression("aql:selectedObjects")
.iteratorName("selectedObject")
.children(
ifClass,
ifInterface,
ifRecord,
ifEnum
)
.build()
)
.build()
)
Expand Down

0 comments on commit 5785ec8

Please sign in to comment.