How can I get an Eclipse installation that includes source code of its plugins?
I need to look at th开发者_开发百科e source of some core plugins of eclipse. I've downloaded the Eclipse for RCP and RAP developers. To get the source of a plugin, I go to the "Plug-ins" view and right click on the plugin. Then, I select the "Import As" menu item and the "Project from a Repository..." submenu item to check out the plugin from its CVS repository. Checking out from the CVS is time consuming. So, I tried to import the plugin as a source project or a binary project with linked content. However, the imported project lacks source code because my Eclipse installation doesn't come with the source code of its plugins. I'm looking for a quicker way to access the source of eclipse plug-ins than checking them out from the CVS repository. So, I wonder how I can get an Eclipse installation that includes source code of its plugins.
You can add the specific Eclipse plugin update site. Most of the plugins in Eclipse provide SDK feature which also include the source code of the plugins.
For example if you want the code for Eclipse core, use update site: http://download.eclipse.org/eclipse/updates/3.6. It has Eclipse Platform SDK and Eclipse SDK. For Web Tools the update site is : http://download.eclipse.org/webtools/repository/helios
According to Eclipse Packages table, the distro you downloaded (RCP) does include the Eclipse main plugin sources.
If that is not enough, you have other ways illustrated in this Eclipse Code Access Tutorial, but it will involve at some point CVS or Git access.
精彩评论