Skip to content

Commit

Permalink
Display feedback action
Browse files Browse the repository at this point in the history
  • Loading branch information
angjordn committed Sep 17, 2024
1 parent 35fae3a commit da78e72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ private void contributeToActionBars(final IViewSite viewSite) {

private void fillLocalPullDown(final IMenuManager manager) {
manager.add(changeThemeAction);
manager.add(feedbackDialogContributionItem.getDialogContributionItem());
manager.add(signoutAction);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import software.aws.toolkits.eclipse.amazonq.views.FeedbackDialog;

public class FeedbackDialogContributionItem implements AuthStatusChangedListener {
private static final String shareFeedbackMenuItemText = "Share Feedback";
private static final String SHARE_FEEDBACK_MENU_ITEM_TEXT = "Share Feedback";

@Inject
private Shell shell;
Expand All @@ -24,7 +24,7 @@ public FeedbackDialogContributionItem(IViewSite viewSite) {
this.viewSite = viewSite;
feedbackDialogContributionItem = new DialogContributionItem(
new FeedbackDialog(shell),
shareFeedbackMenuItemText,
SHARE_FEEDBACK_MENU_ITEM_TEXT,
PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_LCL_LINKTO_HELP)
);
}
Expand All @@ -36,6 +36,10 @@ public void updateVisibility(final boolean isLoggedIn) {
viewSite.getActionBars().getMenuManager().update(true);
});
}

public DialogContributionItem getDialogContributionItem() {
return feedbackDialogContributionItem;
}

@Override
public void onAuthStatusChanged(boolean isLoggedIn) {
Expand Down

0 comments on commit da78e72

Please sign in to comment.