mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
Bug 536380 - Open files with CEditor (specifically, rather than the default editor) in UI test suites
Change-Id: I4f9e94b51956ef72888c5dfb9cb10b39f93a9d38
This commit is contained in:
parent
fa50ca7bc0
commit
7f5ed929a9
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ public class EditorTestHelper {
|
||||||
private static final long MAX_WAIT_TIME = 60000; // don't wait longer than 60 seconds
|
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 {
|
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)
|
if (runEventLoop)
|
||||||
runEventQueue(part);
|
runEventQueue(part);
|
||||||
return part;
|
return part;
|
||||||
|
|
Loading…
Add table
Reference in a new issue