Skip to content

Commit

Permalink
Merge pull request #57 from jeddict/dev
Browse files Browse the repository at this point in the history
AI Assistant action for Java files
  • Loading branch information
jShiwaniGupta authored Oct 26, 2024
2 parents 1cbfe90 + 0eb54c2 commit 567640f
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 567640f

Please sign in to comment.