Skip to main content


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 16:10 Go to next message
Johannes Stelzer is currently offline Johannes StelzerFriend
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] Mon, 14 December 2009 04:40 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
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 Apr 19 19:50:38 GMT 2024

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

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

Back to the top