CommandLine commandLine, String projectName, String file, int offset)
throws Exception
{
IProject project = ProjectUtils.getProject(projectName);
CEditor editor = new CEditor();
IEditorInput input =
new FileEditorInput(ProjectUtils.getFile(project, file));
editor.init(new EclimEditorSite(), input);
editor.setInput(input);
CTextTools textTools = CUIPlugin.getDefault().getTextTools();
IPreferenceStore store = CUIPlugin.getDefault().getCombinedPreferenceStore();
CSourceViewerConfiguration config =
new CSourceViewerConfiguration(