Revision d98abaef
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/StoreUtil.java | ||
---|---|---|
119 | 119 |
return TaxeditorStorePlugin.PLUGIN_ID; |
120 | 120 |
} |
121 | 121 |
|
122 |
/** |
|
123 |
* Cleans title string for output in section titles<br> |
|
124 |
* E.g. escapes '&' with "&&" to avoid mnemonic handling (see |
|
125 |
* Label.setText() documentation)<br> |
|
126 |
* see also #4302 |
|
127 |
* |
|
128 |
* @param title |
|
129 |
* the title string to clean |
|
130 |
* @return the cleaned title string |
|
131 |
*/ |
|
132 |
public static String cleanTitleString(String title){ |
|
133 |
return title.replace("&", "&&"); |
|
134 |
} |
|
135 |
|
|
122 | 136 |
} |
Also available in: Unified diff
ref #4302 Escape '&' in section titles