Skip to content

Connector#selectNode(...) doesn't work after Connector#clearSelection(...) #18

@PavelTurk

Description

@PavelTurk

Connector#selectNode(...) doesn't work after Connector#clearSelection(...). The reason is that boundsPane is detached, and is never attached.

    public void clearSelection() {
        selectedNode = null;
        attributeListener.setTarget(null);
        highlightOpts = HighlightOptions.defaults();
        boundsPane.detach();  <------ THIS LINE
    }

It is attached only on root change

    private void changeRoot(@Nullable Parent oldRoot, @Nullable Parent newRoot, boolean force) {
        ....
        boundsPane.attach(newRoot);  <------ THIS LINE
        notifyRootChanged(newRoot);
    }

BTW: If there is no feedback on the reported issues, I’ll assume the project is no longer actively maintained and will refrain from opening further issues to avoid wasting time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions