From 12ed9bd627d59df71dc80b80271e2536e531b3f8 Mon Sep 17 00:00:00 2001 From: Stephan Janssen Date: Fri, 13 Dec 2024 18:55:42 +0100 Subject: [PATCH] Fix #389 Removed action button tooltips --- .../java/com/devoxx/genie/ui/panel/ActionButtonsPanel.java | 5 ----- src/main/resources/META-INF/plugin.xml | 1 + src/main/resources/application.properties | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/devoxx/genie/ui/panel/ActionButtonsPanel.java b/src/main/java/com/devoxx/genie/ui/panel/ActionButtonsPanel.java index 1118299..4079aa3 100644 --- a/src/main/java/com/devoxx/genie/ui/panel/ActionButtonsPanel.java +++ b/src/main/java/com/devoxx/genie/ui/panel/ActionButtonsPanel.java @@ -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); @@ -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); @@ -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); @@ -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); @@ -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(); }); diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 7e6d7cc..15ba38a 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -41,6 +41,7 @@
  • Fix #382: Restore the correct switch buttons states for RAG, Search, GitDiff
  • Fix #384: Fix web search with enable/disable of Google or Tavily feature
  • Fix #387: Fix tokens encoding for special chars
  • +
  • Fix #389: Remove action buttons tooltips
  • v0.4.4