Do not hardcode the ui type value

This commit is contained in:
Laurent Clouet
2015-05-16 22:35:16 +01:00
parent 5027841cce
commit 7805678ced

View File

@@ -296,7 +296,7 @@ public class Worker {
case GuiSwing.type: case GuiSwing.type:
if (java.awt.GraphicsEnvironment.isHeadless()) { if (java.awt.GraphicsEnvironment.isHeadless()) {
System.out.println("Graphical ui can not be launch."); System.out.println("Graphical ui can not be launch.");
System.out.println("You should set a DISPLAY or use a text ui (via -ui oneline or -ui text)."); System.out.println("You should set a DISPLAY or use a text ui (with -ui " + GuiTextOneLine.type + " or -ui " + GuiText.type + ").");
System.exit(3); System.exit(3);
} }
gui = new GuiSwing(); gui = new GuiSwing();