diff -r d6624c3b146a -r e2f24eea8543 java/sql-dk/src/info/globalcode/sql/dk/formatting/SingleRecordFormatter.java --- a/java/sql-dk/src/info/globalcode/sql/dk/formatting/SingleRecordFormatter.java Sat Aug 15 10:04:28 2015 +0200 +++ b/java/sql-dk/src/info/globalcode/sql/dk/formatting/SingleRecordFormatter.java Sat Aug 15 10:20:39 2015 +0200 @@ -18,6 +18,9 @@ package info.globalcode.sql.dk.formatting; import info.globalcode.sql.dk.ColorfulPrintWriter; +import info.globalcode.sql.dk.configuration.PropertyDeclaration; +import static info.globalcode.sql.dk.formatting.CommonProperties.COLORFUL; +import static info.globalcode.sql.dk.formatting.CommonProperties.COLORFUL_DESCRIPTION; /** * Formatter intended for printing one record (or few records) with many columns. @@ -25,17 +28,17 @@ * * @author Ing. František Kučera (frantovo.cz) */ +@PropertyDeclaration(name = COLORFUL, type = Boolean.class, description = COLORFUL_DESCRIPTION) public class SingleRecordFormatter extends AbstractFormatter { public static final String NAME = "record"; // bash-completion:formatter - public static final String PROPERTY_COLORFUL = "color"; private final ColorfulPrintWriter out; private boolean firstResult = true; public SingleRecordFormatter(FormatterContext formatterContext) { super(formatterContext); out = new ColorfulPrintWriter(formatterContext.getOutputStream()); - out.setColorful(formatterContext.getProperties().getBoolean(PROPERTY_COLORFUL, true)); + out.setColorful(formatterContext.getProperties().getBoolean(COLORFUL, true)); } @Override