| /******************************************************************************* |
| * Copyright (c) 2011, 2012 IBM Corporation and Others |
| * 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: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.actf.ai.internal.ui.scripteditor.guidelist; |
| |
| import org.eclipse.actf.ai.scripteditor.data.IScriptData; |
| import org.eclipse.actf.ai.scripteditor.data.ScriptDataManager; |
| import org.eclipse.jface.viewers.ITreeContentProvider; |
| import org.eclipse.jface.viewers.Viewer; |
| |
| public class GuideListContentProvider implements ITreeContentProvider { |
| |
| private ScriptDataManager dataManager = ScriptDataManager.getInstance(); |
| |
| public void dispose() { |
| } |
| |
| public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { |
| } |
| |
| public Object[] getElements(Object inputElement) { |
| return (dataManager.getDataArray()); |
| } |
| |
| public Object[] getChildren(Object parentElement) { |
| return (new IScriptData[0]); |
| } |
| |
| public Object getParent(Object element) { |
| return null; |
| } |
| |
| public boolean hasChildren(Object element) { |
| return false; |
| } |
| |
| } |