How to write % char within xml that is included for org.eclipse.ui.editors.templates [message #640849] |
Tue, 23 November 2010 05:52  |
Eclipse User |
|
|
|
I want to write % char within xml file. Whenever xml is parsed by eclipse it tries to search for localized string since % is used in xml to get localized string from .properties file. Is there a way by which you can exclude % from parsing.
This happens specially when you implement extension point org.eclipse.ui.editors.templates and add new include and specify xml file to read the templates.
For example your included xml file can have this.
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<template name="test" id="xyz"
description="%test.Description" context="java" enabled="true"
> </template>
for(int i;i<10;i++){
${:link('100%')}
}
When i start eclipse and view these templates it comes as
for(int i;i<10;i++){
${:link('100!')}
}
</templates>
note ! mark. while debugging i found that its trying to find localized string which is empty. so ! is displayed.
|
|
|
|
Powered by
FUDForum. Page generated in 0.31956 seconds