mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Minor improvement for call hierarchy tests.
This commit is contained in:
parent
7794e2fbba
commit
c9559f3327
1 changed files with 3 additions and 4 deletions
|
@ -74,7 +74,6 @@ public class CallHierarchyBaseTest extends BaseUITestCase {
|
||||||
protected void openCallHierarchy(CEditor editor) {
|
protected void openCallHierarchy(CEditor editor) {
|
||||||
CallHierarchyUI.setIsJUnitTest(true);
|
CallHierarchyUI.setIsJUnitTest(true);
|
||||||
CallHierarchyUI.open(editor, (ITextSelection) editor.getSelectionProvider().getSelection());
|
CallHierarchyUI.open(editor, (ITextSelection) editor.getSelectionProvider().getSelection());
|
||||||
runEventQueue(200);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void openCallHierarchy(CEditor editor, boolean showReferencedBy) {
|
protected void openCallHierarchy(CEditor editor, boolean showReferencedBy) {
|
||||||
|
@ -110,11 +109,11 @@ public class CallHierarchyBaseTest extends BaseUITestCase {
|
||||||
protected TreeItem checkTreeNode(Tree tree, int i0, String label) {
|
protected TreeItem checkTreeNode(Tree tree, int i0, String label) {
|
||||||
TreeItem root= null;
|
TreeItem root= null;
|
||||||
try {
|
try {
|
||||||
for (int i=0; i<100; i++) {
|
for (int i=0; i<800; i++) {
|
||||||
root= tree.getItem(i0);
|
root= tree.getItem(i0);
|
||||||
try {
|
try {
|
||||||
if (!"...".equals(root.getText())) {
|
if (label.equals(root.getText())) {
|
||||||
break;
|
return root;
|
||||||
}
|
}
|
||||||
} catch (SWTException e) {
|
} catch (SWTException e) {
|
||||||
// in case widget was disposed, item may be replaced
|
// in case widget was disposed, item may be replaced
|
||||||
|
|
Loading…
Add table
Reference in a new issue