Skip to content

Commit 112c0bf

Browse files
committed
Call methods directly instead of using reflection in genericeditor
1 parent ee5044c commit 112c0bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/HoverTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private Shell getHoverShell(AbstractInformationControlManager manager, boolean f
170170
return null;
171171
}
172172
}
173-
Shell shell= (Shell) new Accessor(control[0], AbstractInformationControl.class).get("fShell");
173+
Shell shell= control[0].getShell();
174174
DisplayHelper.waitForCondition(this.editor.getSite().getShell().getDisplay(), 2000, () -> shell.isVisible());
175175
if (failOnError) {
176176
assertTrue(shell.isVisible());

tests/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/ShowInformationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private Shell getHoverShell(AbstractInformationControlManager manager, boolean f
8383
}
8484
}
8585
boolean[] result = {false};
86-
Shell shell= (Shell) new Accessor(control[0], AbstractInformationControl.class).get("fShell");
86+
Shell shell= control[0].getShell();
8787
DisplayHelper.waitForCondition(control[0].getShell().getDisplay(), 2000, () -> result[0] = shell.isVisible());
8888
if (failOnError) {
8989
assertTrue(shell.isVisible());

0 commit comments

Comments
 (0)