final String outputDirectory = getPrimarySourceFolder().getLocation().toOSString();
final String inputFile = file.getLocation().toOSString(); // path to descriptor file
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
public void run(IProgressMonitor progressMonitor) {
try {
jg.mainForCde(new MergerImpl(), new JCasGenProgressMonitor(progressMonitor),
jCasGenThrower, inputFile, outputDirectory, types, (CASImpl) getCurrentView(),
getProject().getLocationURI().getPath(),
limitJCasGenToProjectScope,
mergedTypesAddingFeatures);
} catch (IOException e) {