/*******************************************************************************
 * Copyright (c) 2004, 2009 David A Carlson.
 * 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
 * 
 * Contributors:
 *     David A Carlson (XMLmodeling.com) - initial API and implementation
 *     
 * $Id$
 *******************************************************************************/
package org.openhealthtools.mdht.uml.edit.provider;

import java.util.List;
import java.util.Vector;

import org.eclipse.emf.common.notify.impl.BasicNotifierImpl;
import org.eclipse.emf.common.util.BasicEList;
import org.eclipse.emf.common.util.EList;

/**
 * A simple list to serve as root of tree viewer.
 * 
 */
public class SimpleListNotifier extends BasicNotifierImpl {

	/**
	 * The list of {@link org.eclipse.emf.common.notify.Adapter}s
	 * associated with the notifier.
	 */
	protected BasicEList eAdapters;

	private List members = new Vector();

	public SimpleListNotifier() {
	}

	public List getMembers() {
		return members;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof SimpleListNotifier) {
			return true;
		}
		return false;
	}

	@Override
	public EList eAdapters() {
		if (eAdapters == null) {
			eAdapters = new EAdapterList(this);
		}
		return eAdapters;
	}

	@Override
	protected BasicEList eBasicAdapters() {
		return eAdapters;
	}

}

@@ -673,24 +673,71 @@
 .Vector;%0D%0A%0D%0A
+import org.eclipse.emf.common.notify.Adapter;%0D%0A
 import org.e
@@ -1136,24 +1136,33 @@
 d BasicEList
+%3CAdapter%3E
  eAdapters;%0D
@@ -1177,16 +1177,24 @@
 ate List
+%3CObject%3E
  members
@@ -1206,16 +1206,24 @@
 w Vector
+%3CObject%3E
 ();%0D%0A%0D%0A%09
@@ -1271,16 +1271,24 @@
 lic List
+%3CObject%3E
  getMemb
@@ -1573,16 +1573,25 @@
 ic EList
+%3CAdapter%3E
  eAdapte
@@ -1657,16 +1657,25 @@
 pterList
+%3CAdapter%3E
 (this);%0D
@@ -1740,16 +1740,25 @@
 sicEList
+%3CAdapter%3E
  eBasicA

Add list types.