private IEditorInput createEditorInput(File file) {
IFile workspaceFile= getWorkspaceFile(file);
if (workspaceFile != null) {
return new FileEditorInput(workspaceFile);
} else {
return new JavaFileEditorInput(EFS.getLocalFileSystem().getStore(new Path(file.getAbsolutePath())));
}
}