Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #389 Removed action button tooltips #390

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ private void createButtons() {

private @NotNull JButton createCalcTokenCostButton() {
JButton button = new JHoverButton(CALC_TOKENS_COST, CalculateIcon, true);
button.setToolTipText(CALCULATE_TOKENS_COST);
button.addActionListener(e -> controller.calculateTokensAndCost());
button.setMinimumSize(minSize);
button.setMaximumSize(maxSize);
Expand All @@ -150,7 +149,6 @@ private void createButtons() {

private @NotNull JButton createAddProjectButton() {
JButton button = new JHoverButton(ADD_PROJECT_TO_CONTEXT, AddFileIcon, true);
button.setToolTipText(ADD_ENTIRE_PROJECT_TO_PROMPT_CONTEXT);
button.addActionListener(this::handleProjectContext);
button.setMinimumSize(minSize);
button.setMaximumSize(maxSize);
Expand All @@ -167,7 +165,6 @@ private void handleProjectContext(ActionEvent e) {

private @NotNull JButton createAddFileButton() {
JButton button = new JHoverButton(AddFileIcon, false);
button.setToolTipText(ADD_FILE_S_TO_PROMPT_CONTEXT);
button.addActionListener(this::selectFilesForPromptContext);
button.setMinimumSize(minSize);
button.setMaximumSize(maxSize);
Expand All @@ -176,7 +173,6 @@ private void handleProjectContext(ActionEvent e) {

private @NotNull JButton createSubmitButton() {
JButton button = new JHoverButton(SubmitIcon, false);
button.setToolTipText(SUBMIT_THE_PROMPT + SHIFT_ENTER);
button.setActionCommand(Constant.SUBMIT_ACTION);
button.addActionListener(this::onSubmitPrompt);
button.setMinimumSize(minSize);
Expand Down Expand Up @@ -230,7 +226,6 @@ private void onSubmitPrompt(ActionEvent actionEvent) {
public void enableButtons() {
ApplicationManager.getApplication().invokeLater(() -> {
submitBtn.setIcon(SubmitIcon);
submitBtn.setToolTipText(SUBMIT_THE_PROMPT + " (Ctrl+Enter)");
promptInputArea.setEnabled(true);
submitPanel.stopGlowing();
});
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<LI>Fix #382: Restore the correct switch buttons states for RAG, Search, GitDiff</LI>
<LI>Fix #384: Fix web search with enable/disable of Google or Tavily feature</LI>
<LI>Fix #387: Fix tokens encoding for special chars</LI>
<LI>Fix #389: Remove action buttons tooltips</LI>
</UL>
<h2>v0.4.4</h2>
<UL>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#Fri Dec 13 18:33:45 CET 2024
#Fri Dec 13 18:54:40 CET 2024
version=0.4.5
Loading