refresh();
Object file = editor.getIFileOrFile(dialog.genFilePath);
if (file instanceof IFile) {
try {
IFile ifile = (IFile) file;
ifile.refreshLocal(1, null);
((IFile) file).setPersistentProperty(
new QualifiedName(PLUGIN_ID, IMPORTABLE_PART_CONTEXT), editor.getFile()
.getLocation().toString());
} catch (CoreException e) {
throw new InternalErrorCDE("unexpected exception", e);