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:
DiffAnnotationsLayerUIuses aJLayerto 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:
DiffStreamSourceensures that "Merge" actions and manual user edits are reflected back into the live AI model state. - Surgical Mapping:
DiffCommentUtilsprovides consistent coordinate shifting to keep AI comments aligned with proposed line changes.
- Author:
- anahata
-
ClassesClassDescriptionBase class for rendering file write operations (full updates or surgical replacements) using the NetBeans native diff viewer decorated with agentic annotations.Specialized renderer for the robust
CodeRefinementBatch.Deprecated.A highly specializedLayerUIdesigned to decorate NetBeans components—specifically the native Diff Viewer—with agentic annotations and boundary-aware scrolling logic.Shared utility for calculating line numbers and mappings in agentic diff renderers.A flexibleStreamSourceimplementation for providing string-based content to the NetBeans Diff API.A rich renderer forFullTextResourceUpdatetool parameters.A specialized parameter renderer that evaluates the correct context classpath for dynamic Java execution snippets and injects it into the NetBeans viewer.A rich renderer for the next-generationTextResourceLineEditstool parameters.A rich renderer forTextResourceReplacementstool parameters.

