Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to set an editor based on a file name pattern
How to set an editor based on a file name pattern [message #656537] Sat, 26 February 2011 15:48 Go to next message
Gary Karasiuk is currently offline Gary KarasiukFriend
Messages: 9
Registered: July 2009
Junior Member
I have an editor that knows how to process files with names like:
javacore.20110204.083723.6016.0005.txt

I'd like to associate it with files that start with the pattern javacore.*

How would I go about doing this?

I know that I can associate my editor with complete file names, or with file extensions, but I don't know how to match on a pattern.

I read about using content types, but my impression was that the files would need to opened, and I didn't want to incur that expense.
Re: How to set an editor based on a file name pattern [message #656564 is a reply to message #656537] Sat, 26 February 2011 20:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Gary,

I think those are all that's available. Content types are generally
computed and cached so need to be recomputed only when the contents change.


Gary Karasiuk wrote:
> I have an editor that knows how to process files with names like:
> javacore.20110204.083723.6016.0005.txt
>
> I'd like to associate it with files that start with the pattern
> javacore.*
>
> How would I go about doing this?
>
> I know that I can associate my editor with complete file names, or
> with file extensions, but I don't know how to match on a pattern.
>
> I read about using content types, but my impression was that the files
> would need to opened, and I didn't want to incur that expense.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to set an editor based on a file name pattern [message #657321 is a reply to message #656537] Wed, 02 March 2011 12:52 Go to previous messageGo to next message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 205
Registered: July 2009
Senior Member
Eclipse Memory Analyzer with the IBM Diagnostic Tool Framework has an association for javacore files.

The association is defined by the IBM DTFJ plugin, and matches on the file extension and a binary signature describer matching the first few bytes of the file.
Re: How to set an editor based on a file name pattern [message #657394 is a reply to message #657321] Wed, 02 March 2011 16:38 Go to previous message
Gary Karasiuk is currently offline Gary KarasiukFriend
Messages: 9
Registered: July 2009
Junior Member
Nice plug for DTFJ Smile

Thanks, that confirms Ed's comment that there is no way to do this short of opening up the file.
Previous Topic:plug-in development - automatically download required bundles first
Next Topic:PerspectiveExtension and PlaceholderFolder
Goto Forum:
  


Current Time: Fri Mar 29 09:58:40 GMT 2024

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

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

Back to the top