trace/traceanalyser/com.nokia.s60tools.traceanalyser/src/com/nokia/s60tools/traceanalyser/ui/views/FailLogTableContentProvider.java
changeset 9 14dc2103a631
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trace/traceanalyser/com.nokia.s60tools.traceanalyser/src/com/nokia/s60tools/traceanalyser/ui/views/FailLogTableContentProvider.java	Wed Jun 23 13:57:56 2010 +0300
@@ -0,0 +1,77 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+
+
+package com.nokia.s60tools.traceanalyser.ui.views;
+
+
+import org.eclipse.jface.viewers.IStructuredContentProvider;
+import org.eclipse.jface.viewers.Viewer;
+
+
+import com.nokia.s60tools.traceanalyser.model.Engine;
+
+/**
+ * class FailLogTableContentProvider
+ * content provides for fail log table.
+ */
+class FailLogTableContentProvider implements IStructuredContentProvider {
+	
+	/* Trace Analyser engine */
+	private final Engine engine;
+	
+	/**
+	 * FailLogTableContentProvider.
+	 * constructor.
+	 * @param engine
+	 */
+	public FailLogTableContentProvider( Engine engine ){
+		this.engine = engine;
+	}
+	
+	/**
+	 * refresh.
+	 * refreshes fail log.
+	 */
+	public void refresh() {
+		engine.refreshFailLog();
+	}
+	
+	/*
+	 * (non-Javadoc)
+	 * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
+	 */
+	public void inputChanged(Viewer v, Object oldInput, Object newInput) {
+	}
+	/*
+	 * (non-Javadoc)
+	 * @see org.eclipse.jface.viewers.IContentProvider#dispose()
+	 */
+	public void dispose() {
+	}
+	/*
+	 * (non-Javadoc)
+	 * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
+	 */
+	public Object[] getElements(Object parent) {
+		return engine.getFailLog();
+		
+	}
+	
+	
+}