+ };
+
+ /*
+ * Prompt for character rendering style if preference is not set
+ */
+ if (renderStyle.equalsIgnoreCase("Prompt each time") && !isHeadless())
+ {
+ LineartOptions svgOption = new LineartOptions("HTML", textOption);
+ svgOption.setResponseAction(1, new Runnable()
+ {
+ @Override
+ public void run()
+ {
+ setProgressMessage(MessageManager.formatMessage(
+ "status.cancelled_image_export_operation",
+ getDescription()));
+ }
+ });
+ svgOption.setResponseAction(0, okAction);
+ svgOption.showDialog();
+ /* no code here - JalviewJS cannot execute it */
+ }
+ else
+ {
+ /*
+ * else (if preference set) just do the export action
+ */
+ doOutput(textOption.get());