Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2016-01-31 09:33:24 +0000
committerLars Vogel2016-02-09 09:37:10 +0000
commit9e178f2b274b2e8d498ab3c9d86df474fa0ab76a (patch)
tree18cbf65a69ae102a6e742eea0be0c602fa622dac /org.eclipse.text/src/org/eclipse/jface/text/templates/TextTemplateMessages.properties
parent4cffb0013023a237c3d43ffa763649b07f7b61fe (diff)
downloadeclipse.platform.text-9e178f2b274b2e8d498ab3c9d86df474fa0ab76a.tar.gz
eclipse.platform.text-9e178f2b274b2e8d498ab3c9d86df474fa0ab76a.tar.xz
eclipse.platform.text-9e178f2b274b2e8d498ab3c9d86df474fa0ab76a.zip
Bug 486903 - [Templates] Allow specifying a default value in case theI20160209-0800
word_selection is empty Change-Id: I5a5c2e77f65aa45474362838aa71fc351779dcd7 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.text/src/org/eclipse/jface/text/templates/TextTemplateMessages.properties')
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/templates/TextTemplateMessages.properties4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/templates/TextTemplateMessages.properties b/org.eclipse.text/src/org/eclipse/jface/text/templates/TextTemplateMessages.properties
index c7af24b9544..d8d6af7b469 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/templates/TextTemplateMessages.properties
+++ b/org.eclipse.text/src/org/eclipse/jface/text/templates/TextTemplateMessages.properties
@@ -20,6 +20,6 @@ GlobalVariables.variable.description.dollar=The dollar symbol
GlobalVariables.variable.description.date=<b>${id\:date[(format[, locale])]}</b><br>Evaluates to the current date in the specified format and locale. 'format' and 'locale' are optional parameters. 'format' is a pattern compatible with java.text.SimpleDateFormat. 'locale' is an RFC 3066 locale ID.<br><br><b>Examples:</b><br><code>${date}</code><br><code>${currentDate:date('yyyy-MM-dd')}</code><br><code>${d:date('EEEE dd MM yyyy', 'fr_CH')}</code>
GlobalVariables.variable.description.year=Current year. Use the 'date' variable if you want to specify the format.
GlobalVariables.variable.description.time=Current time. Use the 'date' variable if you want to specify the format.
-GlobalVariables.variable.description.user=User name
-GlobalVariables.variable.description.selectedWord= The selected word
+GlobalVariables.variable.description.user=User name
+GlobalVariables.variable.description.selectedWord= <b>${id\:word_selection[('default'])}</b><br>Evaluates to the selected text. 'default' is an optional parameter, if specified it is used as default text if the current text selection is empty. <br><br><b>Examples:</b><br><code>${word_selection}</code><br><code>${currentword:word_selection('Press')}</code><br>
GlobalVariables.variable.description.selectedLines= The selected lines

Back to the top