1
일치하는 편집기가 활성화되었을 때 treenode를 선택하려고합니다.Jface TreeViewer setSelection
private void selectNodeInTree(IEditorPart activatedEditor) {
IEditorInput input = activatedEditor.getEditorInput();
StructuredSelection selection = new StructuredSelection(input); //Selection is not null!
treeViewer.setSelection(selection, true);
}
그러나 아무것도 선택되어 있지 않은, 내가 무엇을 놓치고 :
이
코드인가?