Skip to content

Commit

Permalink
NO-JIRA: Adjust tests to Eclipse 4.34 (2024-12)
Browse files Browse the repository at this point in the history
The combo box item was renamed to "Plain Text Editor"
  • Loading branch information
thahnen committed Dec 9, 2024
1 parent a78452b commit 03c4d00
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ public static FileAssociationsPreferences open() {
}

public void resetFileAssociation() {
new DefaultCombo(this, new WithLabelMatcher(LABEL)).setSelection("System Editor; if none: Text Editor");
// With Eclipse 4.34 (2024-12) they changed the label inside the combo box from "Text Editor" to "Plain Text Editor"
try {
new DefaultCombo(this, new WithLabelMatcher(LABEL)).setSelection("System Editor; if none: Text Editor");
} catch (RedDeerException ignored) {
new DefaultCombo(this, new WithLabelMatcher(LABEL)).setSelection("System Editor; if none: Plain Text Editor");
}
}

public void enforceFileAssociation() {
Expand Down

0 comments on commit 03c4d00

Please sign in to comment.