srcanaapps/depexplorer/com.nokia.s60tools.appdep/src/com/nokia/s60tools/appdep/ui/views/main/MainViewExportFunctionsTabContentProvider.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/srcanaapps/depexplorer/com.nokia.s60tools.appdep/src/com/nokia/s60tools/appdep/ui/views/main/MainViewExportFunctionsTabContentProvider.java Sat Jan 09 10:04:11 2010 +0530
@@ -0,0 +1,71 @@
+/*
+* Copyright (c) 2006 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.appdep.ui.views.main;
+
+
+import java.util.ArrayList;
+
+import org.eclipse.jface.viewers.IStructuredContentProvider;
+import org.eclipse.jface.viewers.Viewer;
+
+import com.nokia.s60tools.appdep.core.model.ExportFunctionData;
+
+/**
+ * Content provider for Import Functions tab item.
+ */
+class MainViewExportFunctionsTabContentProvider implements IStructuredContentProvider {
+
+ /**
+ * Reference to <code>ArrayList</code> object that always
+ * contains the current list of imported functions.
+ * This list is populated by <code>MainViewSelectionChangedListener</code>
+ * class.
+ * @see com.nokia.s60tools.appdep.ui.views.main.MainViewSelectionChangedListener
+ */
+ private ArrayList<ExportFunctionData> exportFunctionsArrayList = null;
+
+ /**
+ * Content provider's constructor.
+ * @param exportFunctionsArrayList <code>ArrayList</code> object that always
+ * contains the current list of exported functions.
+ */
+ public MainViewExportFunctionsTabContentProvider(ArrayList<ExportFunctionData> exportFunctionsArrayList){
+ this.exportFunctionsArrayList = exportFunctionsArrayList;
+ }
+
+ /* (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 exportFunctionsArrayList.toArray();
+ }
+
+}