Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2016-01-22 07:51:59 -0500
committerSarika Sinha2016-01-22 07:51:59 -0500
commitb11c99ce0d8d77c7d8f4d6a8c42acc95125a05e8 (patch)
treea69936f5c60f2ab82bc922a381764cf483aa80d8 /org.eclipse.core.variables
parenteb152262968725de3dc0014287f621169ba5ca5e (diff)
downloadeclipse.platform.debug-b11c99ce0d8d77c7d8f4d6a8c42acc95125a05e8.tar.gz
eclipse.platform.debug-b11c99ce0d8d77c7d8f4d6a8c42acc95125a05e8.tar.xz
eclipse.platform.debug-b11c99ce0d8d77c7d8f4d6a8c42acc95125a05e8.zip
Bug 486157 - Adapt to ListenerList changesI20160125-0400I20160124-2000
Diffstat (limited to 'org.eclipse.core.variables')
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java
index 09668bad7..533cfb31d 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java
@@ -76,7 +76,7 @@ public class StringVariableManager implements IStringVariableManager, IPreferenc
/**
* Variable listeners
*/
- private ListenerList fListeners;
+ private ListenerList<IValueVariableListener> fListeners;
// notifications
private static final int ADDED = 0;
@@ -157,9 +157,12 @@ public class StringVariableManager implements IStringVariableManager, IPreferenc
public void notify(IValueVariable[] variables, int update) {
fVariables = variables;
fType = update;
- Object[] copiedListeners= fListeners.getListeners();
- for (int i= 0; i < copiedListeners.length; i++) {
- fListener = (IValueVariableListener)copiedListeners[i];
+ /*
+ * Object[] copiedListeners= fListeners.getListeners(); for (int i=
+ * 0; i < copiedListeners.length; i++) {
+ */
+ for (IValueVariableListener iValueVariableListener : fListeners) {
+ fListener = iValueVariableListener;
SafeRunner.run(this);
}
fVariables = null;
@@ -194,7 +197,7 @@ public class StringVariableManager implements IStringVariableManager, IPreferenc
* Constructs a new string variable manager.
*/
private StringVariableManager() {
- fListeners = new ListenerList();
+ fListeners = new ListenerList<IValueVariableListener>();
}
/**

Back to the top