Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-05-16 13:50:19 -0400
committerjames2002-05-16 13:50:19 -0400
commit673a7e57ff1849fad0945bd36736c4b8faa299fe (patch)
tree5e0a5c4736b2e3ee483c74735a6978160984284c /bundles/org.eclipse.team.cvs.ui
parente6b42e95ef8aec5925f42db0945d9370e7559ce1 (diff)
downloadeclipse.platform.team-673a7e57ff1849fad0945bd36736c4b8faa299fe.tar.gz
eclipse.platform.team-673a7e57ff1849fad0945bd36736c4b8faa299fe.tar.xz
eclipse.platform.team-673a7e57ff1849fad0945bd36736c4b8faa299fe.zip
16160: References to TeamUIPlugin
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java19
1 files changed, 12 insertions, 7 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java
index 2020aacdc..69627a5c9 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java
@@ -43,6 +43,7 @@ import org.eclipse.team.internal.ccvs.core.client.Command.KSubstOption;
import org.eclipse.team.internal.ccvs.core.util.AddDeleteMoveListener;
import org.eclipse.team.internal.ccvs.ui.model.CVSAdapterFactory;
import org.eclipse.team.internal.ui.TeamUIPlugin;
+import org.eclipse.team.ui.TeamUI;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.plugin.AbstractUIPlugin;
@@ -90,6 +91,15 @@ public class CVSUIPlugin extends AbstractUIPlugin implements IPropertyChangeList
*/
private RepositoryManager repositoryManager;
+ // Property change listener
+ IPropertyChangeListener listener = new IPropertyChangeListener() {
+ public void propertyChange(PropertyChangeEvent event) {
+ if (event.getProperty().equals(TeamUI.GLOBAL_IGNORES_CHANGED)) {
+ CVSDecorator.refresh();
+ }
+ }
+ };
+
/**
* CVSUIPlugin constructor
*
@@ -362,13 +372,7 @@ public class CVSUIPlugin extends AbstractUIPlugin implements IPropertyChangeList
repositoryManager = new RepositoryManager();
// if the global ignores list is changed then update decorators.
- TeamUIPlugin.getPlugin().addPropertyChangeListener(new IPropertyChangeListener() {
- public void propertyChange(PropertyChangeEvent event) {
- if(event.getProperty().equals(TeamUIPlugin.GLOBAL_IGNORES_CHANGED)) {
- CVSDecorator.refresh();
- }
- }
- });
+ TeamUI.addPropertyChangeListener(listener);
try {
repositoryManager.startup();
@@ -384,6 +388,7 @@ public class CVSUIPlugin extends AbstractUIPlugin implements IPropertyChangeList
*/
public void shutdown() throws CoreException {
super.shutdown();
+ TeamUI.removePropertyChangeListener(listener);
try {
repositoryManager.shutdown();
} catch (TeamException e) {

Back to the top