|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 package com.nokia.s60tools.swmtanalyser.editors; |
|
18 |
|
19 import java.util.ArrayList; |
|
20 |
|
21 import org.eclipse.jface.viewers.IStructuredContentProvider; |
|
22 import org.eclipse.jface.viewers.Viewer; |
|
23 |
|
24 /** |
|
25 * Content provider for Graphed Items TableViewer |
|
26 * |
|
27 */ |
|
28 public class GraphedItemsContentProvider implements IStructuredContentProvider { |
|
29 |
|
30 @SuppressWarnings("unchecked") |
|
31 private ArrayList inputs; |
|
32 |
|
33 |
|
34 /* (non-Javadoc) |
|
35 * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) |
|
36 */ |
|
37 @SuppressWarnings("unchecked") |
|
38 public Object[] getElements(Object arg0) { |
|
39 inputs = (ArrayList)arg0; |
|
40 return inputs.toArray(); |
|
41 } |
|
42 |
|
43 /* (non-Javadoc) |
|
44 * @see org.eclipse.jface.viewers.IContentProvider#dispose() |
|
45 */ |
|
46 public void dispose() { |
|
47 |
|
48 } |
|
49 |
|
50 /* (non-Javadoc) |
|
51 * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) |
|
52 */ |
|
53 public void inputChanged(Viewer arg0, Object arg1, Object arg2) { |
|
54 |
|
55 } |
|
56 |
|
57 } |