Skip to content

Commit

Permalink
Add backward compatible matcher for new wizard dialog
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Dockal <odockal@redhat.com>
  • Loading branch information
odockal committed Nov 3, 2020
1 parent d4269bd commit 26ba09c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*******************************************************************************/
package org.eclipse.reddeer.eclipse.ui.dialogs;

import org.eclipse.reddeer.common.matcher.RegexMatcher;
import org.eclipse.reddeer.core.matcher.WithTextMatcher;
import org.eclipse.reddeer.workbench.workbenchmenu.WorkbenchMenuWizardDialog;

/**
Expand All @@ -25,7 +27,8 @@ public class NewWizard extends WorkbenchMenuWizardDialog{
public static final String DIALOG_TITLE = "Select a wizard";

public NewWizard() {
super(DIALOG_TITLE,"File","New","Other...");
// super(DIALOG_TITLE,"File","New","Other...");
super(new WithTextMatcher(new RegexMatcher("New|" + DIALOG_TITLE)),"File","New","Other...");
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @author rawagner
*
*/
public abstract class WorkbenchMenuWizardDialog extends WizardDialog{
public abstract class WorkbenchMenuWizardDialog extends WizardDialog {

protected Matcher<String> matcher;
protected String[] path;
Expand Down

0 comments on commit 26ba09c

Please sign in to comment.