Extension point schema and plugin.xml editor [message #462216] |
Wed, 24 January 2007 14:30  |
Eclipse User |
|
|
|
Originally posted by: jraven76.gmail.com
I've been working on adding my own extension points to my "core" plug-in. Everything works great, but there is one little issue that I just can't seem to figure out.
Should the plugin.xml editor recognize the new schema that I created to go along with the extension point? In other words, when I add the new extension to the plugin.xml editor (for a third-party plugin that is contributing through the extension point) and right click on it, should I be able to add my elements through the editor? Similar to when I want to add a view, I first add the View extension to my plugin, then right click again to "Add --> View". Should the editor be smart enough to do this for my newly defined extension point? If so, what might I be missing?
In addition (and most probably related), when I add my extension to the plugin.xml file manually (see below), the schema it is using tells me that the "treeitem" element is not valid, even though it works at runtime.
<extension point="my.plugin.treeItem">
<treeitem
class="my.plugin.TreeItem"
name="Root">
</treeitem>
</extension>
Any advice would be most appreciated :)
|
|
|
|
|
|
Re: Extension point schema and plugin.xml editor [message #462385 is a reply to message #462266] |
Sun, 28 January 2007 12:13  |
Eclipse User |
|
|
|
There may be a bug, which you could report at https://bugs.eclipse.org. There may also be a case where if you have V1 of the plugin already installed in your eclipse, and you're developing V2 which you have the schema for, then PDE might be using the V1 schema. I've certainly seen some similar things for other cases where PDE has been complaining but it's run fine.
One thing to try would be to clean out the PDE specific information cached in .metadata/.plugins/org.eclipse.pde.core (or something like that) and then starting Eclipse (don't do it whilst it's running ...) It might be the schema is cached in PDE and then not refreshed after editing, which is why it doesn't show up.
If this does work, then filing a bug is a good idea ...
Alex.
|
|
|
Powered by
FUDForum. Page generated in 0.58746 seconds