private WsPreferences wsPrefs;
+ private OptionsParam promptEachTimeOpt = new OptionsParam(
+ MessageManager.getString("label.prompt_each_time"),
+ "Prompt each time");
+
+ private OptionsParam lineArtOpt = new OptionsParam(
+ MessageManager.getString("label.lineart"), "Lineart");
+
+ private OptionsParam textOpt = new OptionsParam(
+ MessageManager.getString("action.text"), "Text");
+
/**
* Creates a new Preferences object.
*/
/*
* Set Output tab defaults
*/
- epsRendering.addItem(new OptionsParam(MessageManager
- .getString("label.prompt_each_time"), "Prompt each time"));
- epsRendering.addItem(new OptionsParam(MessageManager
- .getString("label.lineart"), "Lineart"));
- epsRendering.addItem(new OptionsParam(MessageManager
- .getString("action.text"), "Text"));
+
+ epsRendering.addItem(promptEachTimeOpt);
+ epsRendering.addItem(lineArtOpt);
+ epsRendering.addItem(textOpt);
String defaultEPS = Cache.getDefault("EPS_RENDERING",
"Prompt each time");
if (defaultEPS.equalsIgnoreCase("Text"))
{
- epsRendering.setSelectedItem(new OptionsParam(MessageManager
- .getString("action.text"), "Text"));
+ epsRendering.setSelectedItem(textOpt);
}
else if (defaultEPS.equalsIgnoreCase("Lineart"))
{
- epsRendering.setSelectedItem(new OptionsParam(MessageManager
- .getString("label.lineart"), "Lineart"));
+ epsRendering.setSelectedItem(lineArtOpt);
}
else
{
/*
* Save Output settings
*/
- if (epsRendering.getSelectedItem().equals("Prompt each time"))
- {
- Cache.applicationProperties.remove("EPS_RENDERING");
- }
- else
- {
Cache.applicationProperties.setProperty("EPS_RENDERING",
((OptionsParam) epsRendering.getSelectedItem()).getCode());
- }
/*
* Save Connections settings