Skip to main content



      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 10:48 Go to next message
Eclipse UserFriend
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 15:45 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: How to set an editor based on a file name pattern [message #657321 is a reply to message #656537] Wed, 02 March 2011 07:52 Go to previous messageGo to next message
Eclipse UserFriend
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 11:38 Go to previous message
Eclipse UserFriend
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 Jul 18 13:56:52 EDT 2025

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

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

Back to the top