Class CodeRefinementBatchRenderer
java.lang.Object
uno.anahata.asi.nb.ui.render.AbstractTextResourceWriteRenderer<CodeRefinementBatch>
uno.anahata.asi.nb.ui.render.CodeRefinementBatchRenderer
- All Implemented Interfaces:
uno.anahata.asi.swing.agi.message.part.tool.param.ParameterRenderer<CodeRefinementBatch>
public class CodeRefinementBatchRenderer
extends AbstractTextResourceWriteRenderer<CodeRefinementBatch>
Specialized renderer for the robust
CodeRefinementBatch.
This renderer provides a surgical dashboard at the top of the diff viewer that lists all structural intents in their flattened format, ensuring clear feedback for the user before committing the AST changes.
- Author:
- anahata
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JComponentSubclasses can provide a specialized panel to display the raw 'Surgical Intent' (e.g., a list of insertions, replacements, and deletions) at the top of the diff viewer.protected CodeRefinementBatchcreateUpdatedDto(String newContent) Subclasses must be able to create a new DTO instance with updated content when the user manually edits the proposed document in the UI.protected List<uno.anahata.asi.toolkit.resources.text.LineComment> Subclasses can provide line-level comments to be displayed in the diff gutter.Methods inherited from class AbstractTextResourceWriteRenderer
getComponent, getInitialTabIndex, init, render, updateContent
-
Constructor Details
-
CodeRefinementBatchRenderer
public CodeRefinementBatchRenderer()
-
-
Method Details
-
getLineComments
Subclasses can provide line-level comments to be displayed in the diff gutter.- Specified by:
getLineCommentsin classAbstractTextResourceWriteRenderer<CodeRefinementBatch>- Returns:
- A list of
LineCommentobjects.
-
createIntentPanel
Subclasses can provide a specialized panel to display the raw 'Surgical Intent' (e.g., a list of insertions, replacements, and deletions) at the top of the diff viewer.- Overrides:
createIntentPanelin classAbstractTextResourceWriteRenderer<CodeRefinementBatch>- Returns:
- The intent component, or null.
-
createUpdatedDto
Subclasses must be able to create a new DTO instance with updated content when the user manually edits the proposed document in the UI.- Specified by:
createUpdatedDtoin classAbstractTextResourceWriteRenderer<CodeRefinementBatch>- Parameters:
newContent- The edited content from the document.- Returns:
- A new DTO instance of type T.
-

