Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » XML editor does not support file w/ BPEL extension
XML editor does not support file w/ BPEL extension [message #145207] Wed, 26 October 2005 14:37 Go to next message
Eclipse UserFriend
Originally posted by: michael.giroux.objectweb.org

I created a file association for *.BPEL files to open w/ xml editor.

When I open a .bpel file, the xml editor does not appear to treat it as xml.
I cannot format the document, and other xml editor features are not
available.

If I rename the fiel to something.xml, then the editor works as expected.



QUESTION: do I need to modify a config file somewhere to make the xml editor
recognize .bpel extensions?
Re: XML editor does not support file w/ BPEL extension [message #145343 is a reply to message #145207] Wed, 26 October 2005 22:42 Go to previous messageGo to next message
Eclipse UserFriend
Michael Giroux wrote:
> I created a file association for *.BPEL files to open w/ xml editor.
>
> When I open a .bpel file, the xml editor does not appear to treat it as xml.
> I cannot format the document, and other xml editor features are not
> available.
>
> If I rename the fiel to something.xml, then the editor works as expected.
>
> QUESTION: do I need to modify a config file somewhere to make the xml editor
> recognize .bpel extensions?

No, but you should also add ".bpel" to the list of extensions to be
treated as XML in the "Content Types" preference page. It should
work after that.

--
- Nitin
Re: XML editor does not support file w/ BPEL extension [message #145388 is a reply to message #145343] Thu, 27 October 2005 12:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.giroux.objectweb.org

"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:djpeqh$a7u$2@news.eclipse.org...
> No, but you should also add ".bpel" to the list of extensions to be
> treated as XML in the "Content Types" preference page. It should work
> after that.

Yes it did. Thank you very much.

>
> --
> - Nitin

Michael
Re: XML editor does not support file w/ BPEL extension [message #145396 is a reply to message #145343] Thu, 27 October 2005 12:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.giroux.objectweb.org

"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:djpeqh$a7u$2@news.eclipse.org...
> No, but you should also add ".bpel" to the list of extensions to be
> treated as XML in the "Content Types" preference page. It should work
> after that.

Is it possible to add extensions to Content Types using an API, script or
command-line option?
I have several desktops to update, and it would help if I can automate this.

>
> --
> - Nitin

Michael
Re: XML editor does not support file w/ BPEL extension [message #145417 is a reply to message #145396] Thu, 27 October 2005 15:30 Go to previous messageGo to next message
Eclipse UserFriend
Michael Giroux wrote:
> Is it possible to add extensions to Content Types using an API, script or
> command-line option?
> I have several desktops to update, and it would help if I can automate this.

Not any of those ways, since they're defined by plugin extensions.
Your best bet is to create a plugin using the New Plugin wizard that
prereqs org.eclipse.core.runtime and adds an extension for the
org.eclipse.core.runtime.contentTypes extension point. Once built,
that plugin that then be added to any installation to allow BPEL
files to be treated as XML.

The org.eclipse.jst.jsp.core plugin.xml does the exact thing you
need to do to treat tag library descriptors (.tld files) as XML:

<extension point="org.eclipse.core.runtime.contentTypes">
<!-- associate .tld files with the XML content type -->
<file-association
content-type="org.eclipse.core.runtime.xml"
file-extensions="tld" />
</extension>

--
- Nitin
Re: XML editor does not support file w/ BPEL extension [message #145449 is a reply to message #145417] Thu, 27 October 2005 17:33 Go to previous message
Eclipse UserFriend
Originally posted by: michael.giroux.objectweb.org

Thanks Nitin.

"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:djr9tj$plj$1@news.eclipse.org...

> Your best bet is to create a plugin using the New Plugin wizard that
> prereqs org.eclipse.core.runtime and adds an extension for the
> org.eclipse.core.runtime.contentTypes extension point. Once built, that
> plugin that then be added to any installation to allow BPEL files to be
> treated as XML.

I added the following to my plugin.xml and it has done exactly what I need.

<extension point="org.eclipse.core.runtime.contentTypes">
<content-type priority="high"
name="%xpBPELContentType"
id="bpelsource"
base-type="org.eclipse.core.runtime.xml"
default-charset="UTF-8"
file-extensions="bpel" />
</extension>

> - Nitin

Michael
Previous Topic:Removing obsolete webapp libraries
Next Topic:Build output folder and .jar output mysteries
Goto Forum:
  


Current Time: Tue Apr 22 13:32:51 EDT 2025

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

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

Back to the top