}
// check that container is a folder
monitor.subTask("Generating source code");
SimpleGMFCodeGenerator gen = new SimpleGMFCodeGenerator();
IStatus status = gen.generateCode(model, o.getParent().getLocation().toString());
monitor.worked(60);
// refresh parent
monitor.subTask("Refreshing file system");
o.getParent().refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(monitor, 20));