diff --git a/src/main/java/io/github/jeddict/ai/actions/AskAIPackageAction.java b/src/main/java/io/github/jeddict/ai/actions/AskAIPackageAction.java index d1e5aef..2baf428 100644 --- a/src/main/java/io/github/jeddict/ai/actions/AskAIPackageAction.java +++ b/src/main/java/io/github/jeddict/ai/actions/AskAIPackageAction.java @@ -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"}) diff --git a/src/main/java/io/github/jeddict/ai/settings/PreferencesManager.java b/src/main/java/io/github/jeddict/ai/settings/PreferencesManager.java index 25e3e58..7f2ec05 100644 --- a/src/main/java/io/github/jeddict/ai/settings/PreferencesManager.java +++ b/src/main/java/io/github/jeddict/ai/settings/PreferencesManager.java @@ -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()); } }