[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[wtp-dev] Using ModelQueryExtension
|
- From: "Jim Kremens" <kremens@xxxxxxxxx>
- Date: Wed, 26 Nov 2008 22:27:55 -0500
- Delivered-to: wtp-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=z7P2lrCgjYCfx7Bsbjs72cptub/mkXHcYhd3ndEIeZ8=; b=PaY6Ss2iPXY+Fb4UlXIVNmQNe+BG41ukXJo5cZbGqVkR+Qqc2eMst8Kv+Ja0I8OvtK y1C5pda8wBNa2y2HWmmVWWMk+hGKuwGynptApx4WUwxP43/7tP4R3fbdOsgsqbnWqZcz jvj75Ave6rDH2hDPWdSVmjNDY8Opje5yy1lxo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=hT0G7rAHlFYIcQqwYuV6e11rqFeOqLpHxXJrP52oZO2jpahl8zNoNxfa0JvRNfff4a z8aWh4LPEl4+6VfkGcyd++CJ+HFYe6bFSv6/i8CJ2/yj31qv2B6P5Ceim5JU8Yk2PET6 voJ5ArQmBBihG0bVCESSRqTuLVzO3lyRtZkw4=
Hi all,
I'm having trouble implementing the
org.eclipse.wst.xml.core.modelQueryExtensions extension point.
I've declared it as follows in my plugin.xml:
<extension point="org.eclipse.wst.xml.core.modelQueryExtensions">
<modelQueryExtension
class="org.fhtml.eclipse.editors.MyModelQueryExtension"
contentType="org.eclipse.wst.html.core.htmlsource">
</modelQueryExtension>
</extension>
and also built a class that extends ModelQueryExtension:
public class MyModelQueryExtension extends ModelQueryExtension {
public MyModelQueryExtension() {
System.out.print("NEVER CALLED\n");
}
public String[] getAttributeValues(Element e, String namespace,
String name) {
//See XSDModelQueryExtension for example...
}
}
This is my first Eclipse plugin, so if anyone could explain to me the
mechanism that fires this code, that might help. Even in the JSP and
XSD packages that use this code, I haven't been able to find the place
where it is invoked (or where the listener is added).
Has anyone had success with this extension point? Also, if anyone
knows of any real documentation on the topic, that would be great as
well. As far as I can tell, there's almost nothing, as this is meant,
for now, to be an internal extension point.
Thanks,
Jim Kremens