Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2008-01-14 15:19:42 +0000
committerDani Megert2008-01-14 15:19:42 +0000
commitc0fd4e6e42b7bac1a844ceb1624cb76a198df5ce (patch)
tree2f2f3db265715f99d98fda06cd3e257689160771 /org.eclipse.text/src/org
parent4ceb9074bee9ea7ae17838d2e84f77b79189a7b6 (diff)
downloadeclipse.platform.text-c0fd4e6e42b7bac1a844ceb1624cb76a198df5ce.tar.gz
eclipse.platform.text-c0fd4e6e42b7bac1a844ceb1624cb76a198df5ce.tar.xz
eclipse.platform.text-c0fd4e6e42b7bac1a844ceb1624cb76a198df5ce.zip
ListenerList should use identity.
Diffstat (limited to 'org.eclipse.text/src/org')
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/AbstractDocument.java8
-rw-r--r--org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java4
2 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/AbstractDocument.java b/org.eclipse.text/src/org/eclipse/jface/text/AbstractDocument.java
index b0f381e47f8..715f565fee6 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/AbstractDocument.java
+++ b/org.eclipse.text/src/org/eclipse/jface/text/AbstractDocument.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -278,9 +278,9 @@ public abstract class AbstractDocument implements IDocument, IDocumentExtension,
fPositions= new HashMap();
fPositionUpdaters= new ArrayList();
- fDocumentListeners= new ListenerList();
- fPrenotifiedDocumentListeners= new ListenerList();
- fDocumentPartitioningListeners= new ListenerList();
+ fDocumentListeners= new ListenerList(ListenerList.IDENTITY);
+ fPrenotifiedDocumentListeners= new ListenerList(ListenerList.IDENTITY);
+ fDocumentPartitioningListeners= new ListenerList(ListenerList.IDENTITY);
fDocumentRewriteSessionListeners= new ArrayList();
addPositionCategory(DEFAULT_CATEGORY);
diff --git a/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java b/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java
index da2e7d00792..3996589583f 100644
--- a/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java
+++ b/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2007 IBM Corporation and others.
+ * Copyright (c) 2006, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -782,7 +782,7 @@ public class DocumentUndoManager implements IDocumentUndoManager {
fHistory= OperationHistoryFactory.getOperationHistory();
fUndoContext= new ObjectUndoContext(fDocument);
fConnected= new ArrayList();
- fDocumentUndoListeners= new ListenerList();
+ fDocumentUndoListeners= new ListenerList(ListenerList.IDENTITY);
}
/*

Back to the top