Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Re: Extensions broken in e4?
Re: Extensions broken in e4? [message #577423] Fri, 11 June 2010 05:50 Go to next message
Eclipse UserFriend
One extra bit of information,. It is only the "Open extension point schema" that is actually broken as in my first email.

When I run this


private static final String ITESTER_ID = "com.hsbcib.grds.testui.flatfiletester";
...
try {
IExtensionRegistry registry = RegistryFactory.getRegistry();
IExtensionPoint extPoint = registry.getExtensionPoint(ITESTER_ID);

for (IExtension e : extPoint.getExtensions()) {
for (IConfigurationElement ce : e.getConfigurationElements()) {
System.out.println("Evaluating extension");
...

I can see the plugin id plus extension point id (in this case the extension point id is 'flatfiletester') in registry.registryObjects.extensionPoints.keyTable, but getExtensionPoint does NOT return it. I assume there is still some mismatch between what one is publishing as the id (plugin id + extension point id) and what the getExtensionPoint expects as the id (extension point id).

David
Re: Extensions broken in e4? [message #577539 is a reply to message #577423] Fri, 11 June 2010 10:52 Go to previous messageGo to next message
Eclipse UserFriend
Progessed further but still not there.

I changed the code to this

try {
IExtensionRegistry registry = RegistryFactory.getRegistry();
IExtensionPoint[] extPoints = registry.getExtensionPoints();
for(IExtensionPoint extPoint : extPoints) {
if(extPoint.getUniqueIdentifier().equals(ITESTER_ID)) {
for (IExtension e : extPoint.getExtensions()) {
...

This finds my extension point, but the extPoint.getExtensions() returns an empty array. So I cannot help but think there is a difference of expectations between the plugin defining the extension point and the extension that implements that extension point.

Thx.

David
Re: Extensions broken in e4? [message #577605 is a reply to message #577539] Mon, 14 June 2010 03:46 Go to previous message
Eclipse UserFriend
I followed Lars Extension Point example to the letter using e4M6, it has exactly the same issue as I had. This is a bug, I will raise it.

David
Previous Topic:CSS styling with e4
Next Topic:XWT on Eclipse 3.5.2
Goto Forum:
  


Current Time: Wed Jul 16 00:50:19 EDT 2025

Powered by FUDForum. Page generated in 0.10665 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top