aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnjeza2011-04-14 14:27:35 (EDT)
committerIgor Fedorenko2011-04-18 20:11:39 (EDT)
commitbd28b4ed9db64973915d0ad8d4cbedb2504032e3 (patch)
tree7bbceddf5409cc6c2814259e2c3c2188db44b090
parent175da5ea95f3be06087c5c4959b9f86f5b880f42 (diff)
downloadm2e-core-bd28b4ed9db64973915d0ad8d4cbedb2504032e3.zip
m2e-core-bd28b4ed9db64973915d0ad8d4cbedb2504032e3.tar.gz
m2e-core-bd28b4ed9db64973915d0ad8d4cbedb2504032e3.tar.bz2
M2e Performance - Workspace State
Signed-off-by: snjeza <snjezana.peco@redhat.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/MavenPluginActivator.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java8
2 files changed, 9 insertions, 2 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/MavenPluginActivator.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/MavenPluginActivator.java
index 30f8ae2..1187e20 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/MavenPluginActivator.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/MavenPluginActivator.java
@@ -244,7 +244,8 @@ public class MavenPluginActivator extends Plugin {
*/
public void stop(BundleContext context) throws Exception {
super.stop(context);
-
+
+ this.managerImpl.writeWorkspaceState();
this.mavenBackgroundJob.cancel();
try {
this.mavenBackgroundJob.join();
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java
index c70e959..c117670 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java
@@ -826,9 +826,15 @@ public class ProjectRegistryManager {
*/
void applyMutableProjectRegistry(MutableProjectRegistry newState, IProgressMonitor monitor) {
List<MavenProjectChangedEvent> events = projectRegistry.apply(newState);
- stateReader.writeWorkspaceState(projectRegistry);
+ //stateReader.writeWorkspaceState(projectRegistry);
notifyProjectChangeListeners(events, monitor);
}
+
+ public void writeWorkspaceState() {
+ if(stateReader != null && projectRegistry != null) {
+ stateReader.writeWorkspaceState(projectRegistry);
+ }
+ }
IMaven getMaven() {
return maven;