trace/traceanalyser/com.nokia.s60tools.traceanalyser/src/com/nokia/s60tools/traceanalyser/ui/editors/HistoryTableLabelProvider.java
equal
deleted
inserted
replaced
|
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 |
|
18 |
|
19 |
|
20 package com.nokia.s60tools.traceanalyser.ui.editors; |
|
21 |
|
22 import org.eclipse.jface.viewers.ITableLabelProvider; |
|
23 import org.eclipse.jface.viewers.LabelProvider; |
|
24 import org.eclipse.swt.graphics.Image; |
|
25 |
|
26 |
|
27 import com.nokia.s60tools.traceanalyser.export.RuleEvent; |
|
28 |
|
29 /** |
|
30 * HistoryTableLabelProvider. |
|
31 * Label provider for history table. |
|
32 */ |
|
33 class HistoryTableLabelProvider extends LabelProvider implements ITableLabelProvider { |
|
34 |
|
35 /* |
|
36 * (non-Javadoc) |
|
37 * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, int) |
|
38 */ |
|
39 public String getColumnText(Object obj, int index) { |
|
40 RuleEvent item = (RuleEvent)obj; |
|
41 return item.getHistoryText(index); |
|
42 } |
|
43 |
|
44 /* |
|
45 * (non-Javadoc) |
|
46 * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int) |
|
47 */ |
|
48 public Image getColumnImage(Object obj, int index) { |
|
49 return getImage(obj); |
|
50 } |
|
51 |
|
52 /* |
|
53 * (non-Javadoc) |
|
54 * @see org.eclipse.jface.viewers.LabelProvider#getImage(java.lang.Object) |
|
55 */ |
|
56 public Image getImage(Object obj) { |
|
57 return null; |
|
58 } |
|
59 } |