lukaszlenart opened a new issue, #98: URL: https://github.com/apache/struts-intellij-plugin/issues/98
## Context The Graph tab supported **graph selection → DOM** via `getSelectedDomElements()`, feeding the shared `PerspectiveFileEditor` selection. The Diagram tab returns `null` / no-op for both `getSelectedDomElement()` and `setSelectedDomElement()`. Note: Graph's reverse sync (XML → graph highlight) was stubbed with a TODO and never worked — this is an opportunity to implement both directions properly. ## Proposal Bidirectional selection sync between the Diagram canvas and the XML perspective editor. ## Acceptance criteria - [ ] Clicking a diagram node selects/highlights the corresponding DOM element in the XML perspective - [ ] Selecting an action/result/package in the XML tree highlights the matching diagram node (when visible) - [ ] Single-click selects; double-click continues to navigate (current behavior) - [ ] Works for package, action, and result nodes ## References - `Struts2DiagramFileEditor.getSelectedDomElement()` / `setSelectedDomElement()` — currently no-ops - `Struts2GraphFileEditor` — had partial graph → DOM sync -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
