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);
}
しかし、何も選択されていない、私は何をしないのですか?