Skip to content

Commit

Permalink
Merge pull request #390 from devoxx/issue-389
Browse files Browse the repository at this point in the history
Fix #389 Removed action button tooltips
  • Loading branch information
stephanj authored Dec 13, 2024
2 parents 61da793 + 12ed9bd commit f66a030
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
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

0 comments on commit f66a030

Please sign in to comment.