Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Macguire2002-06-10 16:24:00 -0400
committerKevin Macguire2002-06-10 16:24:00 -0400
commit1644683038df16c64213b4738acae48a46be069f (patch)
treeba2ba22bdff6c765d2f02ad7c8d26344237481bf
parentb8ee31ccda2c5edae0b62e055d46d47dba614105 (diff)
downloadeclipse.platform.team-1644683038df16c64213b4738acae48a46be069f.tar.gz
eclipse.platform.team-1644683038df16c64213b4738acae48a46be069f.tar.xz
eclipse.platform.team-1644683038df16c64213b4738acae48a46be069f.zip
19697 :: map triggers project description delta
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java
index 509d698b9..e4f0f5221 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java
@@ -106,15 +106,13 @@ public abstract class RepositoryProvider implements IProjectNature {
}
RepositoryProvider provider = mapNewProvider(project, id);
- project.setPersistentProperty(PROVIDER_PROP_KEY, id);
-
- try {
- provider.configureProject(); //xxx not sure if needed since they control with wiz page and can configure all they want
- } catch (CoreException e) {
- project.setPersistentProperty(PROVIDER_PROP_KEY, null);
- throw e;
- }
- //and mark it with the persistent ID for filtering and session persistence
+
+ //mark it with the persistent ID for filtering
+ project.setPersistentProperty(PROVIDER_PROP_KEY, id);
+ provider.configure(); //xxx not sure if needed since they control with wiz page and can configure all they want
+
+ //adding the nature would've caused project description delta, so trigger one
+ project.setDescription(project.getDescription(), null);
} catch (CoreException e) {
throw TeamPlugin.wrapException(e);
}
@@ -132,10 +130,10 @@ public abstract class RepositoryProvider implements IProjectNature {
if(provider == null)
throw new TeamException(Policy.bind("RepositoryProvider.couldNotInstantiateProvider", project.getName(), id));
- provider.setProject(project);
//store provider instance as session property
try {
project.setSessionProperty(PROVIDER_PROP_KEY, provider);
+ provider.setProject(project);
} catch (CoreException e) {
throw TeamPlugin.wrapException(e);
}

Back to the top