public void run( IProgressMonitor monitor ) throws InvocationTargetException,
InterruptedException {
Project p = page.getProjectInternal();
try {
if (p != null) {
if (p.eResource() != null && p.eResource().isModified()) {
p.eResource().save(ProjectPlugin.getPlugin().saveOptions);
}
saveAndUnload();
} else {
saveAndUnload();