| [news.eclipse.tools.emf] Re: XMLRootElementContentDescriber and element with colons |
Damien,
Hello,
I've been trying to create a contextual menu entry that would only appear when the selected item is a xml file whose top element name
contains a colon (like foo:foo for example) and it won't work. The menu entry never appears. I simply use a contentTypes extension with an XMLRootElementContentDescriber. It works if I change the top element parameter of my content describer to "foo" and I modify my xml file so that its top element is now "foo".
Also, even if I have not specified any constraint on the filename extension, only .xml files are checked and I would want to enable this menu entry for files with the extension I desire. Typically, I want to check if an Ecore model (like example.mylist) has a certain root element (mylist:Elt).
Best regards,