There are two ways to do this, as I can understand so far.
FileEditorManager CreateSplitter
// get the project
Project project = event.getProject();
// get File editor Manager Ex
final FileEditorManagerEx fileEditorManagerEx =
FileEditorManagerEx.getInstanceEx(project);
// get the editorWindow from File Editor Manager Ex
EditorWindow currentWindow = fileEditorManagerEx.getCurrentWindow();
// create a split
fileEditorManager.createSplitter(myOrientation, currentWindow);
EditorWindow.split
// get the project
Project project = event.getProject();
// get File editor Manager Ex
final FileEditorManagerEx fileEditorManagerEx =
FileEditorManagerEx.getInstanceEx(project);
// get the editorWindow from File Editor Manager Ex
EditorWindow currentWindow = fileEditorManagerEx.getCurrentWindow();
// Create a virtual file
VirtualFile virtualFile = new LightVirtualFile(origFile.getName(),origFile.getFileType(), results.get(0));
// create a split
fileEditorManager.createSplitter(myOrientation, currentWindow);
The first one, creates a copy of the existing virtual file in the current editor and creates a split, the second one can be supplied with an instance of virtual file.