Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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