mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-21 02:11:29 +00:00
feat: code assistant (#810)
* feat: code assistant implementation * refactor: clean up
This commit is contained in:
parent
0fc9118f5c
commit
6dc2aa07ae
32 changed files with 961 additions and 61 deletions
|
|
@ -139,8 +139,14 @@ public class UIUtil {
|
|||
}
|
||||
|
||||
public static JLabel createComment(String messageKey) {
|
||||
return createComment(messageKey, ComponentPanelBuilder.MAX_COMMENT_WIDTH);
|
||||
}
|
||||
|
||||
public static JLabel createComment(String messageKey, int maxLineLength) {
|
||||
var comment = ComponentPanelBuilder.createCommentComponent(
|
||||
CodeGPTBundle.get(messageKey), true);
|
||||
CodeGPTBundle.get(messageKey),
|
||||
true,
|
||||
maxLineLength);
|
||||
comment.setBorder(JBUI.Borders.empty(0, 4));
|
||||
return comment;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue