int offset = getOffset(commandLine);
int length = commandLine.getIntValue(Options.LENGTH_OPTION);
ICProject cproject = CUtils.getCProject(projectName);
CUIPlugin cuiPlugin = CUIPlugin.getDefault();
ITranslationUnit src = CUtils.getTranslationUnit(cproject, file);
CCorePlugin.getIndexManager().update(
new ICElement[]{src}, IIndexManager.UPDATE_ALL);
CCorePlugin.getIndexManager().joinIndexer(3000, new NullProgressMonitor());
src = src.getWorkingCopy();
IEditorInput input = new FileEditorInput((IFile)src.getResource());
// hack... there has to be a better way
WorkingCopyManager manager = (WorkingCopyManager)
cuiPlugin.getWorkingCopyManager();
manager.connect(input);
manager.setWorkingCopy(input, (IWorkingCopy)src);
HashMap<String,Object> result = new HashMap<String,Object>();
try{