Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jaxb
diff options
context:
space:
mode:
authorBrian Vosburgh2013-11-21 18:36:40 -0500
committerBrian Vosburgh2015-07-16 14:54:45 -0400
commit4102983083ae008760876f72d6d31b01d3867a78 (patch)
tree26b461110035bb5b20b07ee8681a875394f2282c /jaxb
parent1213b41849f7f7c1d398f2ee4108b89050b9dca5 (diff)
downloadwebtools.dali-4102983083ae008760876f72d6d31b01d3867a78.tar.gz
webtools.dali-4102983083ae008760876f72d6d31b01d3867a78.tar.xz
webtools.dali-4102983083ae008760876f72d6d31b01d3867a78.zip
rework ListenerList
Diffstat (limited to 'jaxb')
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/resource/AbstractJaxbFileResourceModel.java6
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/utility/CallbackJobSynchronizer.java5
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/utility/CallbackSynchronousSynchronizer.java5
3 files changed, 9 insertions, 7 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/resource/AbstractJaxbFileResourceModel.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/resource/AbstractJaxbFileResourceModel.java
index 5de2a2dab8..a3480813b2 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/resource/AbstractJaxbFileResourceModel.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/resource/AbstractJaxbFileResourceModel.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012 Oracle. All rights reserved.
+ * Copyright (c) 2012, 2013 Oracle. 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 http://www.eclipse.org/legal/epl-v10.html
@@ -22,6 +22,7 @@ import org.eclipse.jpt.common.core.JptResourceModel;
import org.eclipse.jpt.common.core.JptResourceModelListener;
import org.eclipse.jpt.common.utility.internal.ListenerList;
import org.eclipse.jpt.common.utility.internal.StringTools;
+import org.eclipse.jpt.common.utility.internal.model.ModelTools;
import org.eclipse.jpt.jaxb.core.internal.plugin.JptJaxbCorePlugin;
public abstract class AbstractJaxbFileResourceModel<S>
@@ -36,8 +37,7 @@ public abstract class AbstractJaxbFileResourceModel<S>
protected final S state;
- protected final ListenerList<JptResourceModelListener> resourceModelListenerList =
- new ListenerList<JptResourceModelListener>(JptResourceModelListener.class);
+ protected final ListenerList<JptResourceModelListener> resourceModelListenerList = ModelTools.listenerList();
protected AbstractJaxbFileResourceModel(IFile file) {
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/utility/CallbackJobSynchronizer.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/utility/CallbackJobSynchronizer.java
index 8be934d081..593ed81c37 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/utility/CallbackJobSynchronizer.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/utility/CallbackJobSynchronizer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2012 Oracle. All rights reserved.
+ * Copyright (c) 2009, 2013 Oracle. 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 http://www.eclipse.org/legal/epl-v10.html.
@@ -14,6 +14,7 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.jpt.common.core.utility.command.JobCommand;
import org.eclipse.jpt.common.utility.internal.ListenerList;
+import org.eclipse.jpt.common.utility.internal.model.ModelTools;
import org.eclipse.jpt.jaxb.core.utility.CallbackSynchronizer;
/**
@@ -29,7 +30,7 @@ public class CallbackJobSynchronizer
extends JobSynchronizer
implements CallbackSynchronizer
{
- private final ListenerList<Listener> listenerList = new ListenerList<Listener>(Listener.class);
+ private final ListenerList<Listener> listenerList = ModelTools.listenerList();
// ********** construction **********
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/utility/CallbackSynchronousSynchronizer.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/utility/CallbackSynchronousSynchronizer.java
index 97b2b3a6d6..92a9a7504d 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/utility/CallbackSynchronousSynchronizer.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/utility/CallbackSynchronousSynchronizer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2012 Oracle. All rights reserved.
+ * Copyright (c) 2009, 2013 Oracle. 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 http://www.eclipse.org/legal/epl-v10.html.
@@ -11,6 +11,7 @@ package org.eclipse.jpt.jaxb.core.internal.utility;
import org.eclipse.jpt.common.utility.command.Command;
import org.eclipse.jpt.common.utility.internal.ListenerList;
+import org.eclipse.jpt.common.utility.internal.model.ModelTools;
import org.eclipse.jpt.jaxb.core.utility.CallbackSynchronizer;
/**
@@ -34,7 +35,7 @@ public class CallbackSynchronousSynchronizer
extends SynchronousSynchronizer
implements CallbackSynchronizer
{
- private final ListenerList<Listener> listenerList = new ListenerList<Listener>(Listener.class);
+ private final ListenerList<Listener> listenerList = ModelTools.listenerList();
// ********** construction **********

Back to the top