Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 User
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
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
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: Thu Jul 24 23:45:11 EDT 2014

Powered by FUDForum. Page generated in 0.08005 seconds