/**
* Column: Description
*/
private void defineColumn_Description(final TableColumnLayout tableLayout) {
final TableViewerColumn tvc = new TableViewerColumn(_markerViewer, SWT.CENTER);
final TableColumn tc = tvc.getColumn();
tc.setText(Messages.Tour_Marker_Column_Description_ShortCut);
tc.setToolTipText(Messages.Tour_Marker_Column_Description_Tooltip);
tvc.setLabelProvider(new CellLabelProvider() {
@Override
public void update(final ViewerCell cell) {
final TourMarker tourMarker = (TourMarker) cell.getElement();
final String description = tourMarker.getDescription();
cell.setText(description.length() == 0 ? UI.EMPTY_STRING : UI.SYMBOL_STAR);
}
});
tableLayout.setColumnData(tc, new ColumnPixelData(_pc.convertWidthInCharsToPixels(4), false));
}
DialogMarker.java 文件源码
java
阅读 39
收藏 0
点赞 0
评论 0
项目:mytourbook
作者:
评论列表
文章目录