IWorkspace workspace = ResourcesPlugin.getWorkspace();
NewFileListener listener = new NewFileListener(vertex);
workspace.addResourceChangeListener(listener,
IResourceChangeEvent.POST_BUILD);
action.run();
workspace.removeResourceChangeListener(listener);
return listener.getRefinement();
}