Source:
private TreeItem createDiskItem(DiskImage disk) { EntityModelCellTable<ListModel> table = new EntityModelCellTable<ListModel>(false, diskRowResources, true); Column<EntityModel, EntityModel> diskWithMappingColumn = new Column<EntityModel, EntityModel>(createDiskImageWithMappingComoisiteCell()) { @Override public EntityModel getValue(EntityModel object) { return object; } }; TextColumn<EntityModel> paddingColumn = new TextColumn<EntityModel>() { @Override public String getValue(EntityModel entity) { return "Disk" + asDisk(entity).getinternal_drive_mapping(); } }; TextColumnWithTooltip<EntityModel> virtualSizeColumn = new TextColumnWithTooltip<EntityModel>() { @Override public String getValue(EntityModel entity) { return asDisk(entity).getSizeInGigabytes() + "GB"; } }; TextColumnWithTooltip<EntityModel> actualSizeColumn = new TextColumnWithTooltip<EntityModel>() { @Override public String getValue(EntityModel entity) { return ((Double) asDisk(entity).getActualDiskWithSnapshotsSize()).intValue() + "GB"; } }; TextColumnWithTooltip<EntityModel> snapshotsColumn = new TextColumnWithTooltip<EntityModel>() { @Override public String getValue(EntityModel entity) { return asDisk(entity).getSnapshots().size() + ""; } }; table.addColumn(diskWithMappingColumn, "diskWithMappingColumn", "39%"); table.addColumn(paddingColumn, "paddingColumn", "10%"); table.addColumn(virtualSizeColumn, "virtualSizeColumn", "10%"); table.addColumn(actualSizeColumn, "actualSizeColumn", "10%"); table.addColumn(snapshotsColumn, "snapshotsColumn", "31%"); EntityModel entityModel = new EntityModel(); entityModel.setEntity(disk); table.setRowData(Arrays.asList(entityModel)); return new TreeItem(table); }

Target:
private TreeItem createDiskItem(DiskImage disk) { EntityModelCellTable<ListModel> table = new EntityModelCellTable<ListModel>(false, diskRowResources, true); Column<EntityModel, EntityModel> diskWithMappingColumn = new Column<EntityModel, EntityModel>(createDiskImageWithMappingComoisiteCell()) { @Override public EntityModel getValue(EntityModel object) { return object; } }; TextColumn<EntityModel> paddingColumn = new TextColumn<EntityModel>() { @Override public String getValue(EntityModel entity) { return "Disk" + asDisk(entity).getinternal_drive_mapping(); } }; TextColumnWithTooltip<EntityModel> virtualSizeColumn = new TextColumnWithTooltip<EntityModel>() { @Override public String getValue(EntityModel entity) { return asDisk(entity).getSizeInGigabytes() + "GB"; } }; TextColumnWithTooltip<EntityModel> actualSizeColumn = new TextColumnWithTooltip<EntityModel>() { @Override public String getValue(EntityModel entity) { return ((Double) asDisk(entity).getActualDiskWithSnapshotsSize()).intValue() + "GB"; } }; TextColumnWithTooltip<EntityModel> snapshotsColumn = new TextColumnWithTooltip<EntityModel>() { @Override public String getValue(EntityModel entity) { return asDisk(entity).getSnapshots().size() + ""; } }; table.addColumn(diskWithMappingColumn, "", "39%"); table.addColumn(paddingColumn, "", "10%"); table.addColumn(virtualSizeColumn, "", "10%"); table.addColumn(actualSizeColumn, "", "10%"); table.addColumn(snapshotsColumn, "", "31%"); EntityModel entityModel = new EntityModel(); entityModel.setEntity(disk); table.setRowData(Arrays.asList(entityModel)); return new TreeItem(table); }