| | |
| | | package org.opends.quicksetup.util; |
| | | |
| | | import org.opends.quicksetup.i18n.ResourceProvider; |
| | | import org.opends.quicksetup.Constants; |
| | | |
| | | /** |
| | | * This is an implementation of the ProgressMessageFormatter class that |
| | |
| | | private String errorText; |
| | | |
| | | /** |
| | | * The line break in plain text. |
| | | */ |
| | | private static String LINE_BREAK = System.getProperty("line.separator"); |
| | | |
| | | /** |
| | | * The space in plain text. |
| | | */ |
| | | private static String SPACE = " "; |
| | |
| | | String result; |
| | | if (applyMargin) |
| | | { |
| | | result = LINE_BREAK+text; |
| | | result = Constants.LINE_SEPARATOR+text; |
| | | } else |
| | | { |
| | | result = text; |
| | |
| | | String result; |
| | | if (applyMargin) |
| | | { |
| | | result = LINE_BREAK+text; |
| | | result = Constants.LINE_SEPARATOR+text; |
| | | } else |
| | | { |
| | | result = text; |
| | |
| | | String result; |
| | | if (applyMargin) |
| | | { |
| | | result = LINE_BREAK+msg; |
| | | result = Constants.LINE_SEPARATOR+msg; |
| | | } else |
| | | { |
| | | result = msg; |
| | |
| | | */ |
| | | public String getLineBreak() |
| | | { |
| | | return LINE_BREAK; |
| | | return Constants.LINE_SEPARATOR; |
| | | } |
| | | |
| | | /** |