started major refactoring

This commit is contained in:
Stephan Richter
2020-12-01 11:20:35 +01:00
parent 614600aacd
commit 72db5da58f
42 changed files with 387 additions and 353 deletions

View File

@@ -18,11 +18,11 @@ public abstract class TextAction extends Action {
public String fill(String tx,Context context) {
if (isSet(context.block)) tx = tx.replace("%block%", context.block.name);
if (isSet(context.contact)) tx = tx.replace("%contact%", context.contact.id());
if (isSet(context.direction)) tx = tx.replace("%dir%", context.direction.name());
if (isSet(context.route)) tx = tx.replace("%route%", context.route.name());
if (isSet(context.train)) tx = tx.replace("%train%", context.train.name());
if (isSet(context.block())) tx = tx.replace("%block%", context.block().name);
if (isSet(context.contact())) tx = tx.replace("%contact%", context.contact().id().toString());
if (isSet(context.direction())) tx = tx.replace("%dir%", context.direction().name());
if (isSet(context.route())) tx = tx.replace("%route%", context.route().name());
if (isSet(context.train())) tx = tx.replace("%train%", context.train().name());
return tx;
}