xtextbin [message #1409884] |
Tue, 19 August 2014 08:08 |
Christophe Bouhier Messages: 937 Registered: July 2009 |
Senior Member |
|
|
Hi,
I have an xtext grammar, which I use in a standalone way, I get an
exception on processing the .xtextbin. The reason is that the
BinaryGrammarResourceFactory is not registered for this extension.
In another grammar, I see this in [grammar]StandAloneSetupGenerated:
if
(!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("xtextbin"))
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
"xtextbin", new
org.eclipse.xtext.resource.impl.BinaryGrammarResourceFactoryImpl());
So, my question is, what would trigger this to be included, (Pressume in
the mwe2 definition?).
Oh, en what is xtextbin ?
Thank You,
Christophe
|
|
|
|
|
|
Re: xtextbin [message #1409933 is a reply to message #1409884] |
Tue, 19 August 2014 10:39 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
The registration is conditionally included by the lines you have quoted.
For the most past *.xtextbin just works, unless you try to backport to
Juno for which Xtext 2.3.0 had no *.xtextbin support.
If you want an Xtext 2.4/2.5/2.6 generated editor to work on Juno and
Xtext 2.3.0 have a look at
org.eclipse.ocl.examples.xtext.base.services.CompatibilityGrammarProvider.BinaryGrammarResourceFactoryImpl
and its references.
Regards
Ed Willink
On 19/08/2014 09:08, Christophe Bouhier wrote:
> Hi,
>
> I have an xtext grammar, which I use in a standalone way, I get an
> exception on processing the .xtextbin. The reason is that the
> BinaryGrammarResourceFactory is not registered for this extension.
>
> In another grammar, I see this in [grammar]StandAloneSetupGenerated:
>
> if
> (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("xtextbin"))
>
>
> Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
> "xtextbin", new
> org.eclipse.xtext.resource.impl.BinaryGrammarResourceFactoryImpl());
>
>
> So, my question is, what would trigger this to be included, (Pressume in
> the mwe2 definition?).
>
> Oh, en what is xtextbin ?
>
> Thank You,
> Christophe
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03310 seconds