How to get all most common eclipse sources? - eclipse

Often I need to see a source code of some eclipse class on CTRL+SHIFT+T or find a class or file by 'File search' on CTRL+H. Some classes are found, but most of needed classes not. Most often I do not know, which plugin the class is in. So I need to get sources of common eclipse plugins.
I found Java Source Attacher plugin, but it attaches only java libraries code.
I found Eclipse Git Repositories, but I did not understand, how to download this sources. I could not find, which link to use to set it in git clone command. And there are separate plugins here.
I found GrepCode repository, but here need to download source code by plugins or watch the code online.
I want just to download most common sources and import it to a separate project 'Eclipse sources'.
How to attach most common eclipse plugins sources to the workspace and where to find them?

In 'Help > Install New Software' select (or enter) the updates site for your release - this is a different site from the normal releases site. For Eclipse Neon it is http://download.eclipse.org/eclipse/updates/4.6
Install the 'SDK' entries for the source you want, probably 'Eclipse Platform SDK' and 'Eclipse SDK'.
Once that is installed open the Preferences and in 'Plug-in Development' select the 'Include all plug-ins from target in Java search' option.
Other parts of Eclipse such as Web Tools have there own update sites containing their source (http://download.eclipse.org/webtools/repository/neon/ for Web Tools).

Related

Subclipse not showing the SVN data in package explorer and team options not available

I installed completely from scratch adt latest version with Juno, and I installed the latest subclipse plug-in (1.10) from the update site. However, once everything is installed I am not able to see the SVN data in the package explorer and in the context menu on the file no team option is available.
How can I investigate what's happening behind? I have not been able to find anything helping in google.
Some information from suggestions below:
I was having a previous installation of juno and I started from scratch in a new folder.
I am using the same workspace as before.
I have tried using subclipse alone, subversive alone and both installed at the same time.
The folder in workspace is recognized by Tortoise in windows, no corruption on SVN folder.
If you do not see the Share Project option in the Team menu, then I would guess the issue is that you are reusing an existing workspace and you had Subversive plugin, not Subclipse installed, and these projects were already connected to Subversive. So the Eclipse framework thinks it is associated with Subversive, but that plugin is not available to add its options to the Team menu.
Create a new workspace is one option. Install Subversive is another option.
UPDATE:
If you do see the Share Project option, then that is your answer. You need to take that option to "connect" your project to your SCM plugin. Projects that are already in your workspace when you install a new SCM plugin do not get connected to your SCM automatically. You have to take Team > Share Project to make the connection.
SOLUTION THAT WORKED:
For recognizing the existing installation of SVN you need to use Team > Share Project and then select the proper version control tool (SVN this case), automatically will associated SVN to the project.

Installing a Plug-in into Eclipse from its source code

There is a plug-in which can actually be found in its dedicated update site and installed from there into eclipse. But for my project, I need the most up-to-date version of this plug-in which can be found it its source code within the GIT repository. So I have downloaded a clone of the source code from the GIT repository into Eclipse. It all looks right, but in the end I need this source code to be compiled and installed as the plug-in into my Eclipse Development IDE (not in a runtime environment!). What are the next steps I need to follow? I would be very glad, if you could hepl me.
Thanks a lot!
The question "Installing an Eclipse Plugin that you've compiled from Source?" mentions two ways:
use the export wizard: File/Export, look for export Deployable plug-ins and fragments, select the compiled plug-in, and then in the lower half of the page select Install into host repository.
Or export your plug-in into a directory, and then copy the directory into the dropins folder.
Check "Eclipse plugin developed under Helios doesn't show in Juno" if you have troubles to make your plugin visible after installation.
You can test a plugin with "Launch an Eclipse application" under "Testing".

Add language pack to eclipse RCP

I downloaded the eclipse language pack from the following site:
http://download.eclipse.org/technology/babel/babel_language_packs/R0.10.1/indigo/indigo.php
I put the downloaded plugins in the plugin folder of my eclipse installation.
My question: How do I use these plugins with my eclipse RCP application now?
I seem to be unable to add them to my application because I can select them no where. I also tried to drop them into the plugin folder of my RCP application after I exported the application and adding the plugin names to the config.ini but I had no success.
I'd appreciate any help on this topic since I'm stuck :(
Since 3.6 or so, Eclipse doesn't try to find additional plugins in the plugins folder; it will only consider what has been installed with p2 (i.e. via the "Install New Software" menu or the marketplace).
There should be a dropins folder next to the plugins folder; put the language packs in there and Eclipse should automatically pick them up.
See the documentation for details.

Installing custom plugin on a clean Eclipse

I'm trying to install my custom Eclipse plugin, which works perfectly when launched from the manifest file, onto a clean installation of Eclipse. I've installed the necessary dependencies (GEF and Zest) manually using their update sites. However, the plugin still doesn't show up. I googled around a lot and found a site suggesting I open eclipse with -debug -consoleLog and revealed the following:
Edit: here's a screenshot of my entire log:
"PowerPlugin" is my custom plugin.
I've checked, and my plugin specifies these dependencies with a minimum version number, and I have installed Zest 1.3.0, Draw2D 3.7.2, and the GEF "All-In-One" SDK 3.7.2, which should satisfy these dependencies, I believe.
Any clue what's wrong?
I would suggest using just indigo update site http://download.eclipse.org/releases/indigo and installing all required dependencies like gef and zest from there (assuming that you use indigo as a baseline?). This update site (actually it is now called a "software site" or repository) contains all required dependencies and they will be installed if needed.
When you using Help>Install new software... p2 provisioning system is used and it will make sure that all required dependencies are satisfied before it starts installing anything.
[Updated bellow]
The problem then is with a dropin mechanism. I found it very unreliable. Would be much better if you could install your plug-in using the standard p2 mechanism (by using software site aka p2 repository) that is:
Please create a feature project.
Add your plug-in (plug-ins) to the newly created feature.
Export the feature ("Export Wizard" link on feature.xml editor). Choose directory destination and on Options tab make sure that "Generate Metadata Repository" is selected (this will spare you the time to create UpdateSite project although you could do that if you want more flexibility later).
In your exported forlder your should have: feature, plugins folders and also artifacts.jar and conten.jar with p2 metadata.
In your destination eclipse go to Help>Install New Software... then Add... and Local... and browse to the folder from point 4.
You should see the feature to install in the list (if not please deselect "Group items by category") and then follow the wizard to install your featrue.
If you want to install on the same host you are running then you can use "Install Into host Repository" in point 3.
See also:
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Fexport_wizards%2Fexport_features.htm

Platform-specific dependency creeping into Eclipse plugin

I have implemented a graph editor with Eclipse EMF and GMF frameworks. After completing my project, I realized that this plugin shows dependencies (not explicitly added by me) on some OS-specific plugins.i.e:org.eclipse.ui.win32, org.eclipse.swt.win32.win32.x86. And whenever I have tried to bypass this dependency at my update site something went wrong with the installation process of the plugin.
As such it is impossible to run my plugin in *nix environment or even win64 machines.This seems a very heavy constraint dependency to me. Am I doing something in a wrong way? Or is there no other way of building Eclipse plugins which are cross-platform other than building the project from scratch at each different OSs?
We created a similar style of plug-in in my project. Under "Plug-in Dependencies" in Package Explorer I can see org.eclipse.swt.win32 listed, but it is not listed in required plug-ins in plugin.xml.
We also successfully created an update site which works for Mac users without issue.
So, yes it is possible to have a cross-platform plug-in.
I would suggest you first try to to use "Export..." -> "Deployable plug-ins and fragments" to create a bunch of jar files for your plug-in. See if these can be successfully installed by copying into the drop-ins folder of a fresh eclipse installation. Do this first on a Win32 install, then try on another platform. Once you have that working, use the new Eclipse installation to create the Update site.