From 7f5ed929a93b72f09e71161f5483b91e6a224ff8 Mon Sep 17 00:00:00 2001
From: Nathan Ridge <zeratul976@hotmail.com>
Date: Wed, 27 Jun 2018 23:40:09 -0400
Subject: [PATCH] Bug 536380 - Open files with CEditor (specifically, rather
 than the default editor) in UI test suites

Change-Id: I4f9e94b51956ef72888c5dfb9cb10b39f93a9d38
---
 .../src/org/eclipse/cdt/ui/testplugin/EditorTestHelper.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/testplugin/EditorTestHelper.java b/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/testplugin/EditorTestHelper.java
index f055db36726..f0ba2112137 100644
--- a/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/testplugin/EditorTestHelper.java
+++ b/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/testplugin/EditorTestHelper.java
@@ -113,7 +113,7 @@ public class EditorTestHelper {
 	private static final long MAX_WAIT_TIME = 60000; // don't wait longer than 60 seconds
 	
 	public static IEditorPart openInEditor(IFile file, boolean runEventLoop) throws PartInitException {
-		IEditorPart part= IDE.openEditor(getActivePage(), file);
+		IEditorPart part= IDE.openEditor(getActivePage(), file, C_EDITOR_ID);
 		if (runEventLoop)
 			runEventQueue(part);
 		return part;