Skip to main content


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 09: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 16:44 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
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: Tue Dec 03 17:42:20 GMT 2024

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

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

Back to the top