Skip to content

Commit

Permalink
Close resource actions should use the property tooltip property (ecli…
Browse files Browse the repository at this point in the history
…pse-platform#498)

Where IDEWorkbenchMessages.CloseResourceAction_text is used to create an
action, IDEWorkbenchMessages.CloseResourceAction_toolTip should be used
for the tooltip of that action.

Fixes eclipse-platform/eclipse.platform#304
  • Loading branch information
merks committed Dec 21, 2022
1 parent a537256 commit 986db40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public IWorkbenchAction create(IWorkbenchWindow window) {
throw new IllegalArgumentException();
}
RetargetAction action = new RetargetAction(getId(), IDEWorkbenchMessages.CloseResourceAction_text);
action.setToolTipText(IDEWorkbenchMessages.CloseResourceAction_text);
action.setToolTipText(IDEWorkbenchMessages.CloseResourceAction_toolTip);
window.getPartService().addPartListener(action);
action.setActionDefinitionId(getCommandId());
return action;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ private IContributionItem getOpenProjectItem() {

private IContributionItem getCloseProjectItem() {
return getItem(IDEActionFactory.CLOSE_PROJECT.getId(), IDEActionFactory.CLOSE_PROJECT.getCommandId(), null,
null, IDEWorkbenchMessages.CloseResourceAction_text, IDEWorkbenchMessages.CloseResourceAction_text);
null, IDEWorkbenchMessages.CloseResourceAction_text, IDEWorkbenchMessages.CloseResourceAction_toolTip);
}

private IContributionItem getItem(String actionId, String commandId,
Expand Down

0 comments on commit 986db40

Please sign in to comment.