If you are an eclipse plugin developer like me you may have seen this issue time to time. You add an extension point and right click on it -> New -> … shows only “Generic”.
This is not all. If you right click on the added extension and click Show Description or Open Schema you will get error messages saying.
“Description for extension point …… cannot be found.”
and
“Extension point schema for extension point ….. cannot be found.”
You might also notice that this is not the case for some of the added extension points. In such extension points you can view the schema get the documentation of the extension point and also the submenu shows the applicable attributes/properties for the extension point.
The reason behind this is that the source of the plugins relevent to the extension point are not specified. And for some the source jar/folder for those plugins exists. The schema for the extension point exists in the source of the plugin. Unless eclipse knows where to find the souce of the plugin it does not know what are the required properties for that extension point.
So the solution is obvious. Give also the source of those plugins to eclipse. There are few ways you can do this.
- Download the source files and copy them to the respective features folder and plugins folder.
- Download and specify the source file location in the eclipse preference
Window -> Preferences -> Plug-in Development -> Target Platform
select “Source Code Locations”
click Add and specify the sources.
You might have to restart the eclipse after that.
(Or you could just download the SDK version of the eclipse when you download eclipse rather than the runtime version since the sdk includes the source also.)
Tags: eclipse extension point description not shown, eclipse extension point generic property, eclipse extension point new menu generic, eclipse extension point schema not showing, eclipse extensions adding new attributes, extension point attributes not shown in menu, Extension tab Generic Menu, plugin editor showing generic submenu
December 24, 2008 at 9:20 am |
Super! Just started with eclipse-development and had this problem… My google-quest got me here using searchterm “eclipse plugin development Generic”.
February 5, 2009 at 6:22 am |
Awesome… i am a beginner in Eclipse plugin dev and you saved a lot of tension for me ..
February 24, 2009 at 9:58 pm |
I’m surprised this isn’t a more common problem. It didn’t work with either my Eclipse 3.4 Ganymede install or the IBM RAD 7.5 equivalent.
Thank you, thank you!
June 29, 2009 at 6:35 pm |
fine job! download the .jar from
http://www.sfr-fresh.com/linux/misc/eclipse-SDK-3.4.2-linux-gtk.tar.gz/index_t.html
August 22, 2009 at 7:18 pm |
The following was missing from the helping article:
the source dirs to add should be something like:
C:\stsdk\eclipse\plugins\org.eclipse.platform.source.*
Hopes that helps.
September 27, 2009 at 2:42 am |
[…] fact I did what most people would do: I went to Google. What I found was Saminda Wijeratne’s blog where the problem was the same, but the solution described was quite different than I […]
December 7, 2009 at 9:30 pm |
While using the ‘Eclipse for RCP/Plug-in Developers Galileo (v3.5)’ (eclipse-rcp-galileo-linux-gtk.tar.gz) I hat the same problem. But after updating to ‘Eclipse for RCP/Plug-in Developers Galileo (v3.5-SR1)’ (eclipse-rcp-galileo-SR1-linux-gtk.tar.gz) open schema’s and show description is working as expected.
January 4, 2010 at 10:32 am |
Good work!
I added “org.eclipse.ui.source_3.5.1.M20090902-1000.jar” in plugins folder, it works!
Thanks!
March 9, 2010 at 7:05 pm |
Thanks. This was very useful for me.
June 27, 2010 at 11:36 am |
Hi eclipsemen.
Please help me. Spent so much time on this problem.
I have eclipse 3.4 Ganymede. I checked my eclipse plugin directory and i could see org.eclipse.ui_3.4.2.M20090204-0800 . Is this the source that you are all talking about ?
This file is already in my directory but i am still having the problem. If this is not the source file, where should i get the source file ?
I am very new and please explain clearly.
Thanks in advance.
June 27, 2010 at 12:51 pm |
Hi Alireza,
No that is not the file. The required file will have the word “source” or “src” in its filename.
Saminda
June 27, 2010 at 4:49 pm |
Many many thanks for your response. so where can i get that file. It seems i dont have that file in my directory. when i search for eclipse source file, i find my self in some repository pages and i dont know which one to download. It seems eclipse is searching for something blahblahblah.exsd .
can you give me a link to any of the sources ? for example i want the source for this plugin : org.eclipse.ui.commands
this is just an example. where should i find its source ?
June 27, 2010 at 7:18 pm |
it might be easier for you to download the SDK version available now (galileo sr2) rather than finding the source bundles for ganymede release. Eclipse ppl archive their older releases to different location and sometimes these locations are hard to find dude.
January 5, 2011 at 6:44 am |
I am using Helios Eclipse and downloaded org.eclipse.ui.source_3.5.1.M20090902-1000.jar file in plugin folder as well but nothing changed. Please respond
May 13, 2011 at 8:59 am |
Only worked with Eclipse RCP. And I do not know why.
June 5, 2011 at 9:32 am |
It is workable.
I work with Eclipse Java EE IDE for Web Developers.Version: Helios Service Release 2, I have the same problem, so I download the Eclipse platform SDK
( http://archive.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/eclipse-platform-SDK-3.6-win32.zip )and store at folder:F:\Program Files\SDK, after unzipping, the folder look like:F:\Program Files\SDK\eclipse\plugins. then add location to the target platform mentioned before, be sure that correct location is :F:\Program Files\SDK\eclipse, not the location F:\Program Files\SDK\eclipse\plugins,the latter is not workable.
August 31, 2011 at 9:06 am |
For me, this worked fine:
Go to Help > Install new Software
Load this updatesite:
http://download.eclipse.org/releases/indigo
Select EclipseRT Target Platform Components and check the Eclipse RCP Plug-in Developer Resources
Follow the wizard, restart Eclipse. Done.
September 8, 2012 at 2:15 pm |
i just downloaded the eclipse for rcp and rap and this worked well
December 17, 2012 at 2:28 am |
Instant fix:
download > Eclipse Classic 4.2.1 < to fix this , it works without any changes instantly, just select your workspace and voila
found this out after trying to fix my previous eclipse version without success for ~2h
link to working version:
http://www.eclipse.org/downloads/packages/eclipse-classic-421/junosr1
(simply official site "Eclipse Classic 4.2.1 ")
April 25, 2013 at 4:37 pm |
omg thank you, i almost got mad with this “Generic”
December 19, 2016 at 3:14 am |
perfect