Skip to content

Commit

Permalink
AI Assistant action for Java files
Browse files Browse the repository at this point in the history
Updated AI Assistant functionality by adding a new action reference for Java file loaders, enabling seamless interaction with AI capabilities directly within Java projects.
  • Loading branch information
jShiwaniGupta committed Oct 26, 2024
1 parent 1cbfe90 commit 0eb54c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
displayName = "#CTL_AskAIPackageAction", lazy = true, asynchronous = true, iconBase = "icons/logo28.png")
@ActionReferences({
@ActionReference(path = "Projects/package/Actions", position = 100),
@ActionReference(path="Loaders/text/x-java/Actions", position=100),
@ActionReference(path = "Loaders/folder/any/Actions", position = 300),
@ActionReference(path = "Toolbars/Build", position = 100)})
@Messages({"CTL_AskAIPackageAction=AI Assistant"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public String getCommonPromptRules() {
}

public void setCommonPromptRules(String rules) {
if (rules != null && !rules.isEmpty()) {
if (rules != null) {
preferences.put(COMMON_PROMPT_RULES_PREFERENCE, rules.trim());
}
}
Expand Down

0 comments on commit 0eb54c2

Please sign in to comment.