Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Vosburgh2013-06-17 18:20:58 -0400
committerBrian Vosburgh2013-06-17 18:20:58 -0400
commite44a76574cf5516c894a838ea774657e3c86894e (patch)
treeca7e31cd9d6be76d9874d6819070b30323baec49 /common/plugins/org.eclipse.jpt.common.core/src
parentd56056cc871980b45e810232d1a85c6bdda7dbde (diff)
downloadwebtools.dali-e44a76574cf5516c894a838ea774657e3c86894e.tar.gz
webtools.dali-e44a76574cf5516c894a838ea774657e3c86894e.tar.xz
webtools.dali-e44a76574cf5516c894a838ea774657e3c86894e.zip
convert ListenerList to Iterable
Diffstat (limited to 'common/plugins/org.eclipse.jpt.common.core/src')
-rw-r--r--common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/gen/AbstractJptGenerator.java2
-rw-r--r--common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/binary/RootBinaryModel.java2
-rw-r--r--common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/source/SourceCompilationUnit.java2
-rw-r--r--common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/utility/command/NotifyingRepeatingJobCommandWrapper.java2
-rw-r--r--common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/resource/xml/JptXmlResource.java6
5 files changed, 7 insertions, 7 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/gen/AbstractJptGenerator.java b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/gen/AbstractJptGenerator.java
index 94f9bceb57..e140be0953 100644
--- a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/gen/AbstractJptGenerator.java
+++ b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/gen/AbstractJptGenerator.java
@@ -159,7 +159,7 @@ public abstract class AbstractJptGenerator implements JptGenerator
}
private void notifyLaunchConfigListeners(boolean generationSuccessful) {
- for(LaunchConfigListener launchConfigListener : this.launchConfigListenerList.getListeners()) {
+ for(LaunchConfigListener launchConfigListener : this.launchConfigListenerList) {
launchConfigListener.launchCompleted(generationSuccessful);
}
}
diff --git a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/binary/RootBinaryModel.java b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/binary/RootBinaryModel.java
index 350edf21d6..fc7961cea0 100644
--- a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/binary/RootBinaryModel.java
+++ b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/binary/RootBinaryModel.java
@@ -60,7 +60,7 @@ abstract class RootBinaryModel
// ********** JavaResourceNode.Root implementation **********
public void resourceModelChanged() {
- for (JptResourceModelListener listener : this.resourceModelListenerList.getListeners()) {
+ for (JptResourceModelListener listener : this.resourceModelListenerList) {
listener.resourceModelChanged(this);
}
}
diff --git a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/source/SourceCompilationUnit.java b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/source/SourceCompilationUnit.java
index ba4456c0ba..81eaad7cf3 100644
--- a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/source/SourceCompilationUnit.java
+++ b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/source/SourceCompilationUnit.java
@@ -111,7 +111,7 @@ public abstract class SourceCompilationUnit
// ********** JavaResourceNode.Root implementation **********
public void resourceModelChanged() {
- for (JptResourceModelListener listener : this.resourceModelListenerList.getListeners()) {
+ for (JptResourceModelListener listener : this.resourceModelListenerList) {
listener.resourceModelChanged(this);
}
}
diff --git a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/utility/command/NotifyingRepeatingJobCommandWrapper.java b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/utility/command/NotifyingRepeatingJobCommandWrapper.java
index 168dd95b35..cb24027a48 100644
--- a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/utility/command/NotifyingRepeatingJobCommandWrapper.java
+++ b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/utility/command/NotifyingRepeatingJobCommandWrapper.java
@@ -78,7 +78,7 @@ public class NotifyingRepeatingJobCommandWrapper
* cancel the notifications (e.g. via a monitor or exception).
*/
private void executionQuiesced() {
- for (Listener listener : this.listenerList.getListeners()) {
+ for (Listener listener : this.listenerList) {
this.notifyListener(listener);
}
}
diff --git a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/resource/xml/JptXmlResource.java b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/resource/xml/JptXmlResource.java
index 689631aebc..68909994a5 100644
--- a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/resource/xml/JptXmlResource.java
+++ b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/resource/xml/JptXmlResource.java
@@ -278,7 +278,7 @@ public class JptXmlResource
// ********** listener notifications **********
protected void resourceModelChanged() {
- for (JptResourceModelListener listener : this.resourceModelListenerList.getListeners()) {
+ for (JptResourceModelListener listener : this.resourceModelListenerList) {
try {
listener.resourceModelChanged(this);
} catch (Exception ex) {
@@ -288,7 +288,7 @@ public class JptXmlResource
}
protected void resourceModelReverted() {
- for (JptResourceModelListener listener : this.resourceModelListenerList.getListeners()) {
+ for (JptResourceModelListener listener : this.resourceModelListenerList) {
try {
listener.resourceModelReverted(this);
} catch (Exception ex) {
@@ -298,7 +298,7 @@ public class JptXmlResource
}
protected void resourceModelUnloaded() {
- for (JptResourceModelListener listener : this.resourceModelListenerList.getListeners()) {
+ for (JptResourceModelListener listener : this.resourceModelListenerList) {
try {
listener.resourceModelUnloaded(this);
} catch (Exception ex) {

Back to the top