summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2018-06-27 23:40:09 -0400
committerNathan Ridge2018-07-07 20:17:59 -0400
commit7f5ed929a93b72f09e71161f5483b91e6a224ff8 (patch)
treee32042a20adde26a27804ffd029f8e2014f29c58
parentfa50ca7bc0da3e51c4ad8774017d8d3c37a4e79c (diff)
downloadorg.eclipse.cdt-7f5ed929a93b72f09e71161f5483b91e6a224ff8.tar.gz
org.eclipse.cdt-7f5ed929a93b72f09e71161f5483b91e6a224ff8.tar.xz
org.eclipse.cdt-7f5ed929a93b72f09e71161f5483b91e6a224ff8.zip
Bug 536380 - Open files with CEditor (specifically, rather than the default editor) in UI test suites
-rw-r--r--core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/testplugin/EditorTestHelper.java2
1 files changed, 1 insertions, 1 deletions
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 f055db3672..f0ba211213 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;