minor improvements
This commit is contained in:
@@ -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("< "+col);
|
||||
for (Object col : cols) {
|
||||
if ("".equals(col)) continue;
|
||||
head.add("< "+col);
|
||||
}
|
||||
} else head.addAll(cols);
|
||||
|
||||
table.addHead(head.toArray());
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user