import org.tizen.dynamicanalyzer.ui.widgets.ViewContainer;
import org.tizen.dynamicanalyzer.ui.widgets.table.DAApiListTableComposite;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableDataFormat;
+import org.tizen.dynamicanalyzer.utils.Formatter;
public class GLAPIListTable extends DAApiListTableComposite {
- private String[] columnNames = { GLPageLabels.GL_API_LIST_VIEW_INDEX,
+ private static String EMPTY = "";
+ private String[] columnNames = { GLPageLabels.GL_API_LIST_VIEW_SEQ, EMPTY,
GLPageLabels.GL_API_LIST_VIEW_TIME,
GLPageLabels.GL_API_LIST_VIEW_NAME,
GLPageLabels.GL_API_LIST_VIEW_PARAMETER,
GLPageLabels.GL_API_LIST_VIEW_ELAPSED_TIME,
GLPageLabels.GL_API_LIST_VIEW_ERROR };
- private int[] columnSizes = { 40, 70, 120, 250, 100, 100 };
+ private int[] columnSizes = { 40, 0, 70, 120, 250, 100, 100 };
private int[] columnAlignment = { SWT.RIGHT, SWT.LEFT, SWT.LEFT, SWT.LEFT,
SWT.LEFT, SWT.LEFT };
private int[] sortTypes = { AnalyzerConstants.SORT_TYPE_NUM,
AnalyzerConstants.SORT_TYPE_NUM,
+ AnalyzerConstants.SORT_TYPE_NUM,
AnalyzerConstants.SORT_TYPE_STRING,
AnalyzerConstants.SORT_TYPE_STRING,
AnalyzerConstants.SORT_TYPE_NUM, AnalyzerConstants.SORT_TYPE_STRING };
private int[] sourceColumns = { LogCenterConstants.SEQUENCE_NUMBER_INDEX,
- LogCenterConstants.TIME_INDEX, LogCenterConstants.APINAME_INDEX,
+ //FIXME
+ 0, LogCenterConstants.TIME_INDEX,
+ LogCenterConstants.APINAME_INDEX,
LogCenterConstants.INPUTPARM_INDEX, LogCenterConstants.TIME_INDEX,
LogCenterConstants.ERROR_INDEX };
List<TableInput> inputList = new ArrayList<TableInput>();
if (endFrameIndex == -1) {
+ //TODO
+ table.getColumn(1).setWidth(0);
+ table.getColumn(1).setText(EMPTY);
makeInputList(inputList, involvedMap, insideColumnMap,
startFrameIndex);
} else {
+ table.getColumn(1).setWidth(45);
+ table.getColumn(1).setText(GLPageLabels.GL_API_LIST_VIEW_FRAME);
for (int index = startFrameIndex; index < endFrameIndex; index++) {
makeInputList(inputList, involvedMap, insideColumnMap, index);
}
String seq = String.valueOf(glAPIData.getSeq());
texts.add(seq);
- texts.add(String.valueOf(glAPIData.getTime()));
+ texts.add(Integer.toString(frameIndex));
+ texts.add(String.valueOf(Formatter.toTimeFormat(glAPIData.getTime())));
texts.add(glAPIData.getName());
texts.add(glAPIData.getParameter());
texts.add(String.valueOf(glAPIData.getElapsedTime()));