|
Added
Link Here
|
| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2008 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* http://www.eclipse.org/legal/epl-v10.html |
| 7 |
* $Id: $ |
| 8 |
* |
| 9 |
* Contributors: |
| 10 |
* IBM Corporation - initial API and implementation |
| 11 |
*******************************************************************************/ |
| 12 |
|
| 13 |
package org.eclipse.tptp.platform.tablecelllabelprovider.sample; |
| 14 |
|
| 15 |
import org.eclipse.hyades.ui.provisional.context.IContextAttributes; |
| 16 |
|
| 17 |
public class TableCellLabelProvider extends |
| 18 |
org.eclipse.tptp.platform.common.ui.views.TableCellLabelProvider { |
| 19 |
|
| 20 |
public String getColumnHoverText(Object element, String columnID) { |
| 21 |
return "Custom Help>>"+element+"\n Column>>"+columnID; |
| 22 |
} |
| 23 |
|
| 24 |
public String[] getSupportColumnKeys() { |
| 25 |
return new String[] { |
| 26 |
IContextAttributes.PACKAGE_ACTIVE_SIZE, |
| 27 |
IContextAttributes.PACKAGE_AVG_BASE_TIME, |
| 28 |
IContextAttributes.PACKAGE_BASE_TIME, |
| 29 |
IContextAttributes.PACKAGE_INH_BASE_TIME, |
| 30 |
IContextAttributes.PACKAGE_CUMULATIVE_TIME, |
| 31 |
IContextAttributes.PACKAGE_INH_CUMULATIVE_TIME, |
| 32 |
IContextAttributes.PACKAGE_CPU_TIME, |
| 33 |
IContextAttributes.PACKAGE_CALLS, |
| 34 |
IContextAttributes.PACKAGE_INH_CALLS, |
| 35 |
IContextAttributes.PACKAGE_TOTAL_INST, |
| 36 |
IContextAttributes.PACKAGE_LIVE_INST, |
| 37 |
IContextAttributes.PACKAGE_COLLECTED_INST, |
| 38 |
IContextAttributes.PACKAGE_TOTAL_SIZE, |
| 39 |
IContextAttributes.PACKAGE_ACTIVE_SIZE, |
| 40 |
}; |
| 41 |
} |
| 42 |
|
| 43 |
} |