}
protected void initWithLastDataSourceValues() {
// Set cell text
HookedTextShape ts0 = (HookedTextShape) cells.get(0);
DataSource source = ts0.source;
if (source != null) {
try {
long dsIndex = source.getLastIndex();
for (int i = 0; i < cells.size(); i++) {
// Get text value from fisrt cell properties
String text = "";
if (ts0.displayDsName.booleanValue()) {
String name = DataInfo.getLabel(source);
if ((name != null) && !name.equals("")) {
text += name;
if (ts0.displayDsValue.booleanValue()) {
text += "=";
}
}
}
try {
if (ts0.displayDsValue.booleanValue()) {
text += ts0.formatSourceValue(source.getValue(dsIndex));
}
} catch (DataException e) {
text += TextShape.resources.getString("NoValue");
}
if (ts0.displayDsUnit.booleanValue()) {