I am trying to select a treenode when a matched editor is activated.
this is the code:
private void selectNodeInTree(IEditorPart activatedEditor) {
IEditorInput input = activatedEditor.getEditorInput();
StructuredSelection selection = new StructuredSelection(input); //Selection is not null!
treeViewer.setSelection(selection, true);
}
But nothing is selected, what am I missing?