Skip to content

Commit

Permalink
Undo/Redo menu edit does not show description anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Nov 16, 2023
1 parent fbb138f commit 296b044
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -1214,11 +1214,17 @@ protected void waitForShellToClose(SWTBotShell shell) {
}

protected void undo(final String undoText) {
editMenu().menu("Undo " + undoText).click();
// looks like, at least in 2023-09, the Undo menu of menu's Edit
// does not show the description label anymore
// https://www.eclipse.org/forums/index.php/t/1113985/
// editMenu().menu("Undo " + undoText).click();
editMenu().menu("Undo").click();
}

protected void redo(final String undoText) {
editMenu().menu("Redo " + undoText).click();
// see the comment above
// editMenu().menu("Redo " + undoText).click();
editMenu().menu("Redo").click();
}

protected SWTBotText undoShortcut(SWTBotText text) {
Expand Down

0 comments on commit 296b044

Please sign in to comment.