Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Regex for filenames in plugin.xml
Regex for filenames in plugin.xml [message #328253] Tue, 20 May 2008 05:59 Go to next message
Eclipse UserFriend
Originally posted by: _onni_.telenet.be

Hello

I've developed a visual XML editor for different XML files with the same
structure. At this moment I attach the editor by placing "*.xml" as the
value of the filenames within plugin.xml and it works fine.

All the files that have to use the editor by default begin with
description and are followed by a digit. For example description1,
description27,...

Is there a way to use a regex in the filenames attribute in plugin.xml so
that only the files according to the given expression will have the editor
by default?

Kind regards

Xnni
Re: Regex for filenames in plugin.xml [message #328329 is a reply to message #328253] Wed, 21 May 2008 12:44 Go to previous message
Eclipse UserFriend
Xnni wrote:
> Hello
>
> I've developed a visual XML editor for different XML files with the
> same structure. At this moment I attach the editor by placing "*.xml"
> as the value of the filenames within plugin.xml and it works fine.
>
> All the files that have to use the editor by default begin with
> description and are followed by a digit. For example description1,
> description27,...
>
> Is there a way to use a regex in the filenames attribute in plugin.xml
> so that only the files according to the given expression will have the
> editor by default?
No, that's not possible. If your XML has some specific markup then you
could register your own content type that uses a content describer to
find matching files.

Dani
>
> Kind regards
>
> Xnni
>
Previous Topic:Job Problem Occurred Dialog
Next Topic:eclipse hangs when opening java files
Goto Forum:
  


Current Time: Sat Apr 19 04:50:39 EDT 2025

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

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

Back to the top