I have SWT tree which has child.
Now I want to provide a right click menu and on click of the menu want to make 1st level of the Tree editable (the name of the tree) as shown in the diagram. I want to make Test editable on click of right click menu or any button.

Already tried with EditingSupport but couldn’t able to figure out how to make it editable only for specific level of the tree and that even on click on menu
Are you using a
TreeViewer? If so you can useTreeViewer#editElement(Object element, int column)to activate the editor on any element of your choice.