use of net.sourceforge.pmd.util.fxdesigner.util.controls.ScopeHierarchyTreeCell in project pmd by pmd.
the class NodeInfoPanelController method initialize.
@Override
public void initialize(URL location, ResourceBundle resources) {
EventStreams.valuesOf(scopeHierarchyTreeView.getSelectionModel().selectedItemProperty()).filter(Objects::nonNull).map(TreeItem::getValue).filterMap(o -> o instanceof NameDeclaration, o -> (NameDeclaration) o).subscribe(parent::onNameDeclarationSelected);
scopeHierarchyTreeView.setCellFactory(view -> new ScopeHierarchyTreeCell(parent));
}
Aggregations