Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » content-type selection by filename-pattern?
content-type selection by filename-pattern? [message #503380] Sat, 12 December 2009 11:10 Go to next message
Johannes Stelzer is currently offline Johannes Stelzer
Messages: 30
Registered: October 2009
Member
I'm about to develop an editor for a dsl.

In fact I've got four DSLs and all with the same Extensiont (*.inp).

But you can distinguish them by a suffix before the Extension.
e.g.: *_BaseSelection.inp *_DetailSelection.inp

My Problem is that there seem ony way to detect the content-type by
the whole file-name, the file-extension or by content.

so nothing seems to fit here. Does anybody know how to solve my problem?
Re: content-type selection by filename-pattern? [message #503452 is a reply to message #503380] Sun, 13 December 2009 23:40 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
Johannes Stelzer wrote:
> I'm about to develop an editor for a dsl.
>
> In fact I've got four DSLs and all with the same Extensiont (*.inp).
>
> But you can distinguish them by a suffix before the Extension.
> e.g.: *_BaseSelection.inp *_DetailSelection.inp
>
> My Problem is that there seem ony way to detect the content-type by
> the whole file-name, the file-extension or by content.
>
> so nothing seems to fit here.
Correct, please see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=263316

Dani
> Does anybody know how to solve my problem?
Previous Topic:IExtensionRegistry.getExtensionPoint(..) returns null in standalon runtime
Next Topic:Databinding with different input / output models
Goto Forum:
  


Current Time: Fri Aug 01 20:38:22 EDT 2014

Powered by FUDForum. Page generated in 0.01951 seconds