/*******************************************************************************
* Copyright (c) 2006 IBM, Inc and Composent, Inc. 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: Ken Gilmer <kgilmer@gmail.com> - initial API and implementation
******************************************************************************/
package org.eclipse.ecf.tutorial.scribbleshare.toolbox;
import java.util.List;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
/**
* Palette consists of a List of AbstractTools.
* @author kgilmer
*
*/
public class ListContentProvider implements IStructuredContentProvider {
public Object[] getElements(Object inputElement) {
return ((List)inputElement).toArray();
}
public void dispose() {
}
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
}
}