- remove unnecessary project save calls when saving project extensions

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8817 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent b757187d5a
commit 30f6eef462
  1. 16
      sdk/jme3-core/src/com/jme3/gde/core/j2seproject/ProjectExtensionManager.java

@ -142,11 +142,11 @@ public class ProjectExtensionManager {
ext.addDependency(target, extension);
}
}
try {
ProjectManager.getDefault().saveProject(proj);
} catch (IOException ex) {
Exceptions.printStackTrace(ex);
}
// try {
// ProjectManager.getDefault().saveProject(proj);
// } catch (IOException ex) {
// Exceptions.printStackTrace(ex);
// }
addAntTaskLibrary(proj, antTaskLibrary);
try {
addZipContents(proj.getProjectDirectory());
@ -187,7 +187,7 @@ public class ProjectExtensionManager {
assetsBuildFile.delete();
}
Logger.getLogger(ProjectExtensionManager.class.getName()).log(Level.INFO, "Saving project {0}", proj.getProjectDirectory().getName());
ProjectManager.getDefault().saveProject(proj);
// ProjectManager.getDefault().saveProject(proj);
} catch (IOException ex) {
Exceptions.printStackTrace(ex);
}
@ -394,7 +394,7 @@ public class ProjectExtensionManager {
if (extender != null) {
LibraryManager.getDefault();
extender.addLibrary(LibraryManager.getDefault().getLibrary(name));
ProjectManager.getDefault().saveProject(proj);
// ProjectManager.getDefault().saveProject(proj);
}
} catch (Exception e) {
@ -411,7 +411,7 @@ public class ProjectExtensionManager {
if (extender != null) {
LibraryManager.getDefault();
extender.removeLibrary(LibraryManager.getDefault().getLibrary(name));
ProjectManager.getDefault().saveProject(proj);
// ProjectManager.getDefault().saveProject(proj);
}
} catch (IOException ex) {
Exceptions.printStackTrace(ex);

Loading…
Cancel
Save