/* * Copyright (C) 2005, 2015 David Orme <djo@coconut-palm-software.com> * * 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 Orme - Initial API and implementation */ package org.eclipse.jface.examples.databinding.model; import java.util.LinkedList; import java.util.List; public class SimpleModel { public SimpleModel() { // Add some sample data to our personList... personList.add(new SimplePerson("John", "1234", "Wheaton", "IL")); personList.add(new SimplePerson("Jane", "1234", "Glen Ellyn", "IL")); personList.add(new SimplePerson("Frank", "1234", "Lombard", "IL")); personList.add(new SimplePerson("Joe", "1234", "Elmhurst", "IL")); personList.add(new SimplePerson("Chet", "1234", "Oak Lawn", "IL")); personList.add(new SimplePerson("Wilbur", "1234", "Austin", "IL")); personList.add(new SimplePerson("Elmo", "1234", "Chicago", "IL")); } // Now a PersonList property... List<SimplePerson> personList = new LinkedList<>(); public List<SimplePerson> getPersonList() { return personList; } }