How to programmatically Highlight an Node in Sirius Diagram representation [message #1796976] |
Tue, 23 October 2018 08:37  |
Eclipse User |
|
|
|
Hi All,
I am using Double click listener event in eclipse Error Log. When this event will active then it should highlight the corresponding node in DDiagramEditorImpl class(also Focus on that element in Model Explorer).
From org.eclipse.ui.navigator.CommonViewer class I am trying to focus the node.
1>commonViewer.getControl().setFocus();
Here, setFocus() is retruning true but still node is not highlighted.
2>commonViewer.setSelection(new StructuredSelection(element), true);
setSelection() is internally returning null value.
Above both method are not working any other ways to highlight the element and Node.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02892 seconds