Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » PDE Templates
PDE Templates [message #324653] Tue, 29 January 2008 21:36
Eclipse UserFriend
I am using the org.eclipse.pde.ui.pluginContent and the
org.eclipse.pde.ui.newExtension extension points to provide templates when
a user is creating a new plugin. As such, I need to write out my own
extension point when the user is finished with the New Plug-in Project
wizard. One of my elements contains text that should be a CDATA node.
For example, this is what I want to save to the plugin.xml:

<myElement>
<![CDATA[
This is my text that needs to be a CDATA node (not evaluated by the parser)
]]>
</myElement>

When I use the IPluginElement.setText() method and include the CDATA
syntax, I get the following in my plugin.xml:
<myElement>
&lt;![CDATA[
This is my text that needs to be a CDATA node (not evaluated by the parser)
]]&gt;
</myElement>

My code looks something like this:
myPluginElement.setText("<![CDATA[This is my text ...]]>");

Am I doing something wrong? Or is there any way to output text and keep
the original CDATA XML syntax?
Previous Topic:Key Binding for Show Next Match?
Next Topic:Reset configuration after update?
Goto Forum:
  


Current Time: Wed Sep 17 02:29:05 EDT 2025

Powered by FUDForum. Page generated in 0.03556 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top