Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Re: Extensions broken in e4?
Re: Extensions broken in e4? [message #577423] Fri, 11 June 2010 09:50 Go to next message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
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 14:52 Go to previous messageGo to next message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
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 07:46 Go to previous message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
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: Fri Apr 19 01:27:01 GMT 2024

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

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

Back to the top