blob: 2b7e7bb9f0ee5e9d5d524f3f4a06ebc0cfec9649 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 xored software, 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:
* xored software, Inc. - initial API and Implementation (Alex Panchenko)
*******************************************************************************/
package org.eclipse.dltk.internal.debug.ui.log;
import java.util.List;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
public class ScriptDebugLogContentProvider implements
IStructuredContentProvider {
public void dispose() {
// empty
}
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
// empty
}
public Object[] getElements(Object inputElement) {
if (inputElement instanceof List) {
synchronized (inputElement) {
return ((List) inputElement).toArray();
}
}
return new Object[0];
}
}