/* AWE - Amanzi Wireless Explorer
* http://awe.amanzi.org
* (C) 2008-2009, AmanziTel AB
*
* This library is provided under the terms of the Eclipse Public License
* as described at http://www.eclipse.org/legal/epl-v10.html. Any use,
* reproduction or distribution of the library constitutes recipient's
* acceptance of this agreement.
*
* This library is distributed WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
package org.amanzi.awe.nem.ui.properties.table.providers;
import java.util.List;
import org.amanzi.awe.nem.export.SynonymsWrapper;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
/**
* TODO Purpose of
* <p>
* </p>
*
* @author Vladislav_Kondratenko
* @since 1.0.0
*/
public class SynonymsTableContentProvider implements IStructuredContentProvider {
@Override
public void dispose() {
// TODO Auto-generated method stub
}
@SuppressWarnings("unchecked")
@Override
public Object[] getElements(final Object inputElement) {
if (inputElement != null) {
List<SynonymsWrapper> synonyms = (List<SynonymsWrapper>)inputElement;
return synonyms.toArray();
}
return null;
}
@Override
public void inputChanged(final Viewer viewer, final Object oldInput, final Object newInput) {
// TODO Auto-generated method stub
}
}