Package uno.anahata.asi.nb.ui.render


package uno.anahata.asi.nb.ui.render
Provides the visual rendering layer for agentic file write operations within NetBeans.

This package implements a sophisticated UI architecture that integrates the Anahata ASI with the native NetBeans Diff module. It uses a decorator-based approach to overlay AI-generated metadata, comic-style comment bubbles, and surgical intent dashboards over standard side-by-side diff viewers.

Key Architectural Components:

  • Agentic Decoration: DiffAnnotationsLayerUI uses a JLayer to paint annotations without disrupting the internal component hierarchy of the NetBeans Diff module.
  • Boundary-Aware Scrolling: Solves the "Scroll Trap" problem by redirecting mouse wheel events to the parent conversation when the diff viewer reaches its boundaries.
  • Document Synchronization: DiffStreamSource ensures that "Merge" actions and manual user edits are reflected back into the live AI model state.
  • Surgical Mapping: DiffCommentUtils provides consistent coordinate shifting to keep AI comments aligned with proposed line changes.
Author:
anahata