Extensions broken in e4? [message #537977] |
Fri, 04 June 2010 11:39 |
David Wynter Messages: 4624 Registered: July 2009 |
Senior Member |
|
|
Hi,
Followed this tutorial here - http://www.vogella.de/articles/EclipseExtensionPoint/article .html using e4 M6
The extension point creation works fine. But when I go to create the extension itself instead of the extension point id showing in the Extensions dialog after hitting the Add... button I get a listing that shows the plugin name (where the EP is defined) concatenated with the extension point id. If I select this to Add, then that works, but then clicking on the "Open extension point schema" link throws
at org.eclipse.pde.internal.core.schema.SchemaDescriptor.<init>(SchemaDescriptor.java:46)
at org.eclipse.pde.internal.ui.editor.schema.SchemaInputContext.createExternalModel(SchemaInputContext.java:76)
at org.eclipse.pde.internal.ui.editor.schema.SchemaInputContext.createModel(SchemaInputContext.java:57)
at org.eclipse.pde.internal.ui.editor.context.InputContext.create(InputContext.java:134)
at org.eclipse.pde.internal.ui.editor.schema.SchemaInputContext.<init>(SchemaInputContext.java:42)
at org.eclipse.pde.internal.ui.editor.schema.SchemaEditor.createSystemFileContexts(SchemaEditor.java:103)
at org.eclipse.pde.internal.ui.editor.PDEFormEditor.createInputContexts(PDEFormEditor.java:206)
If I edit the plugin.xml directly to use the proper EP Id then it says it does not exist. Looks to me like the plugin publishing the EP is using the concatenated plugin name and EP Id and the plugin providing the Extension expects just the EP Id.
Thx.
David
[Updated on: Fri, 04 June 2010 11:42] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Extensions broken in e4? [message #1787629 is a reply to message #577701] |
Wed, 30 May 2018 10:01 |
|
For the late comers, for me it was an issue with the Eclipse target version. Since it is defined as a comment at the begging of your plugin.xml file it is easy to overlook:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
...
With version 3.0 I got the complaints about dots in the extension id, but without them (the dots) my elipse would refuse to find the extensions when adding them to other plugins.
When I changed the version to 3.4 the extension points where found (remember to restart your eclipse - it likes to cache stuff that makes this type of changes not to be picked). Also, with 3.4 dots can be used in the extension id. I think what they did is that the information is taken from the schema and not the entry in the plugin.xml (the id in the schema had no dots in my case).
Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
|
|
|
Powered by
FUDForum. Page generated in 0.05313 seconds