|
Re: Filter variable filter [message #1821294 is a reply to message #1821144] |
Mon, 10 February 2020 14:13 |
|
Hello,
Concerning the first question about having the user enter a level beyond which the element will be filtered, you can add to your "variable filter" a sub element "typed variable" [1]. This will display a pop up dialog where the user can enter the wanted level.
For the second question, as the filter works on semantic element, I do not think that we have a variables on graphical elements as this functionality was intended to be applied on a the currently selected element but the whole diagram. However, you can call a java service from the diagram and compute the result after accessing the diagram selection with ((org.eclipse.sirius.diagram.ui.tools.internal.editor.DDiagramEditorImpl)EclipseUIUtil.getActiveEditor()).getDiagramEditPart().getViewer().getSelection().
Best regards,
Steve
[1] https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#filter_with_typed_variable
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.01995 seconds