Hello Dimitris,
I think that we could manage a generic nsURI ("*" is a good example).
And yes, you will have to implements NameProvider and/or IconProvider to
associate an EObject to a label and/or icon.
That's all !
Here is examples for j2se5 and C# metamodels (it will be submitted soon)
It is the plugin sources, I hope it will give you a lot of ideas :-)
best regards,
Gabriel
Hi Gabriel,
Looks great! Thanks for sharing this.
In fact I'd like to provide an extension to contribute custom names and
icons to EObjects based on particular annotations in the respective
EClasses (as per http://www.eclipse.org/gmt/epsilon/doc/Exeed.pdf). To
do this, I would like to be able to specify my extensions not for a
particular nsURI but for any nsURI.
In the current version, this is doesn't seem to be possible as each
extension needs to define a specific nsURI (id). I was wondering if a
future version of the editor could also provide support for a generic
nsURI (e.g. "*") which I could use to define that my extension applies
to any nsURI. In this case I suspect that the NameProvider and
IconProvider interfaces might need to be enhanced to also support a
providesName(EObject) and providesIcon(EObject) method respectively to
allow such extensions specify exactly which EObjects they can provide
names and icons for.
Any thoughts on this?
Cheers,
Dimitris