Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwecai2014-06-08 23:03:38 -0400
committerIgor Fedorenko2014-06-12 08:23:12 -0400
commit81fef77edb54521e36d7565af0b4d2874e5c9217 (patch)
treeb75ff6103039877111a789e492aca07e8be63458 /org.eclipse.m2e.core
parentd2c2e62cfd1d2c55d7d75a173b0940b7575ea14d (diff)
downloadm2e-core-81fef77edb54521e36d7565af0b4d2874e5c9217.tar.gz
m2e-core-81fef77edb54521e36d7565af0b4d2874e5c9217.tar.xz
m2e-core-81fef77edb54521e36d7565af0b4d2874e5c9217.zip
[436668]: Avoid ProjectFacade refresh when .classpath or .project
changes Change-Id: Ifdaf662e9a1ed4d645d491b71a328666cadddf9b Signed-off-by: wecai <wecai@ebay.com>
Diffstat (limited to 'org.eclipse.m2e.core')
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java4
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java2
2 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java
index 4edbcd24..bf3b8272 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java
@@ -548,6 +548,10 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
removeMavenBuilder(project, description, monitor);
project.setDescription(description, null);
+
+ // tell the projectManager to remove the project facade and notify MavenProjectChangeListeners
+ MavenPlugin.getMavenProjectRegistry().refresh(
+ new MavenUpdateRequest(project, mavenConfiguration.isOffline(), false));
}
public boolean addMavenBuilder(IProject project, IProjectDescription description, IProgressMonitor monitor)
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 70ef883d..227f019e 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
@@ -125,8 +125,6 @@ public class ProjectRegistryManager {
*/
public static final List<? extends IPath> METADATA_PATH = Arrays.asList( //
new Path("pom.xml"), // //$NON-NLS-1$
- new Path(".project"), // //$NON-NLS-1$
- new Path(".classpath"), // //$NON-NLS-1$
new Path(".settings/" + IMavenConstants.PLUGIN_ID + ".prefs")); // dirty trick! //$NON-NLS-1$ //$NON-NLS-2$
private static final String CTX_MAVENPROJECTS = ProjectRegistryManager.class.getName() + "/mavenProjects";

Back to the top