if (project.getDocument()==null) {
saveProjectAs(project);
return;
}
Document document = project.getDocument();
if (!document.canWrite()) {
myWorkbenchFacade.showErrorDialog(i18n.getText("msg10"));
saveProjectAs(project);
return;
}
if (!document.acquireLock()) {