Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2002-05-21 14:23:37 -0400
committerJean Michel-Lemieux2002-05-21 14:23:37 -0400
commit6ec90ce1bfbd593e27dbef1671e908097699975f (patch)
treeb9ffb134f81c509827e7c5e7454119e8bef2e857
parentb6e41f678ce5648f9764599eaa837c54e486d395 (diff)
downloadeclipse.platform.team-6ec90ce1bfbd593e27dbef1671e908097699975f.tar.gz
eclipse.platform.team-6ec90ce1bfbd593e27dbef1671e908097699975f.tar.xz
eclipse.platform.team-6ec90ce1bfbd593e27dbef1671e908097699975f.zip
Added removeSite()Root_Move_Project_Branch
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/target/TargetManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/target/TargetManager.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/target/TargetManager.java
index bcb4e3482..69e4ec4d6 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/target/TargetManager.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/target/TargetManager.java
@@ -69,6 +69,15 @@ public class TargetManager {
element.siteAdded(site);
}
}
+
+ public static void removeSite(Site site) {
+ sites.remove(site);
+ save();
+ for (Iterator it = listeners.iterator(); it.hasNext();) {
+ ISiteListener element = (ISiteListener) it.next();
+ element.siteRemoved(site);
+ }
+ }
/**
* @see TargetProvider#map(IProject)

Back to the top