Skip to content

MaterialTree does not visually select MaterialTreeItem on setSelectedItem #2

@SandraK82

Description

@SandraK82

I call setSelectedItem on a Tree, filled with items by code:
tree.clear() MaterialTreeItem first = null; for(MyObject obj : getMyObjects()) { MaterialTreeItem item = getItem(obj); if(first==null) first = item; tree.add(item); } tree.setSelectedItem(first);
This does not visually shows selection of first item.
Tested with gmd 2.2 and 2.3.0
tree.setSelectedItem(first) was called from a event handler, tested also with a deferred and scheduled command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions