minor improvements

This commit is contained in:
Stephan Richter
2021-09-20 20:37:26 +02:00
parent 57fb15e1c1
commit 710915f3ba
6 changed files with 15 additions and 6 deletions

View File

@@ -294,7 +294,10 @@ public class LookupTable extends BaseClass{
Vector<Object> head = new Vector<Object>();
head.add("");
if (LENGTH.equals(colType)) {
for (Object col : cols) head.add("&lt; "+col);
for (Object col : cols) {
if ("".equals(col)) continue;
head.add("&lt; "+col);
}
} else head.addAll(cols);
table.addHead(head.toArray());

View File

@@ -76,7 +76,8 @@ public class DetermineTrainInBlock extends Action {
}
public String toString() {
return isSet(block) ? t("Determine, which train is in {}",block) : "["+t("Click here to select block!")+"]";
if (isSet(block)) return parked ? t("Determine, which train is parked in {}",block) : t("Determine, which train is in {}",block);
return "["+t("Click here to select block!")+"]";
};
@Override

View File

@@ -89,6 +89,6 @@ public class DisableEnableTile extends Action {
if (newTile instanceof Shadow) newTile = ((Shadow)newTile).overlay();
if (isSet(newTile)) tile = newTile;
disable = !"enable".equals(params.get(STATE));
return properties();
return parent().properties();
}
}