|
|
|
Re: How get internationalized enumeration literal [message #814421 is a reply to message #814398] |
Tue, 06 March 2012 12:29 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Markus,
Comments below.
On 06/03/2012 12:56 PM, Markus Jo wrote:
> Hi Ed,
> you write "You have to use the EditPlugin of the generated item
> providers for that model."....but my snippet uses it, doesnt it ?
> "EMFEditPlugin.INSTANCE.getString(...".
Yes, that's the point. The EMFEditPlugin isn't the plugin for you
generated item providers (e.g., XyzEditPlugin) and EMF Edit doesn't know
where the plugin.properties file is for your model. It looks in
org.eclipse.emf.edit/plugin.properties and your string isn't there.
>
> You mean the ResourceItemProviderAdapterFactory ?
No.
> It is created and added to other factories but I havent found where it
> is used yet.
It will be used whenever your view hows a resource or resource set. The
generated editor has a resource set as input to the main tree, so it's
used there to get the resources of the resource set and the contents of
the resource.
>
> Are these two different ways you described ? The EditPugin.getString
> and the ResourceItemProviderAdapterFactory one ?
No. All this works in generated item providers because they have a
getResourceLocator override that returns the XyzEditPlugin instance.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03068 seconds