Installing a Plug-in into Eclipse from its source code - eclipse

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".

Related

How to get all most common eclipse sources?

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).

Issue in TestNG with Eclipse

I have tried with the below url in Eclipse to install the TestNG Plugin..
Select Help / Install new software.
Search for new features to install.
New remote site.
For Eclipse 3.4 and above, enter http://beust.com/eclipse.
For Eclipse 3.3 and below, enter http://beust.com/eclipse1.
But Unfortunately Both gets Connection refused..
I have downloaded the files from https://github.com/cbeust/testng-eclipse/
When I extract the zip, It has the following things:
Scripts,
testng-eclipse-feature,
testng-eclipse-plugin,
testng-eclipse-Update-Site,
.cvsignore,
.gitignore,
.project,
.travel.yml,
changes.log,
new-release,
pom.xml,
README.md
I have copied features and plugin and pasted in the eclipse feature and plugin folder respectively. Now If i create TestNG class,
I am getting following error "The selected wizard could not be started.
Plug-in org.testng.eclipse was unable to load class org.testng.eclipse.wizards.NewTestNGClassWizard.
org.testng.eclipse.wizards.NewTestNGClassWizard"
Can any one help on this??
Thanks
You are using an older version of Eclipse, please upgrade to Luna and give it a try it would certainly work.
1)First try the same method of yours from install new software.
2)Go to Eclipse Market place and just type TestNG and search, it would display the plugin and install it.

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.

Offine installation of PMD plugin for Eclipse IDE

I am trying to download and install PMD plugin for Eclipse offline but did not succeed in doing so.
I downloaded following 2 zips:
net.sourceforge.pmd.eclipse-3.2.6.v200903300643.zip (this version matches with the one which I installed online)
pmd-eclipse-1.8.0
Not sure which one to use and how to configure it in Eclipse.
I searched a lot but did not find proper steps for the offine installation and configuration.
In case it contains site archieve:
Goto Help->Install New Software
Click Add...
In the Add Repository Dialog click Archive and point to your zip. Rest of the installation is as you would do with an online installation.
Else:
Extract the zip
Copy all plugins to your target eclipse plugins folder
Copy all features to your target eclipse features folder
launch eclipse with -clean option
You can get the latest 4.0 version of the plugin by pointing your Eclipse installer here:
http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/

Qt Eclipse Integration not working

I was hoping to use the Qt plugin with Eclipse. The installation is very simple - just expand a tarball in the appropriate directory. After doing so, I can see trolltech folders under eclipse/features and eclipse/plugins. However, when I try to create a project, I see no sign of any Qt option. Nor do I see Qt listed in the Installed Software listing of plugins or features.
Eclipse: Galileo Build 3.5.2
CDT: 6.0.0.2
O/S: Ubuntu 10.10 i686 2.6.35-28-generic
Plugin in tarball: qt-eclipse-integration-linux.x86.1.6.1.tar.gz from here: http://qt.nokia.com/developer/eclipse-integration/
Starting Eclipse with -consolelog -debug didn't offer any enlightenment
Have the Qt plugins aged past their use-by date?
Update
Installing to /usr/share/eclipse is a mistake
Installing to /usr/lib/eclipse works
I would suggest that that the instructions on the Qt page could use some revision. Instead of saying:
Find your eclipse/plugins folder
It might be better to add: The eclipse folder should contain the eclipse executable, eclipse.ini, the plugins directory, and the features directory.
This would have kept me from being fooled by /usr/share/eclipse, which has a feature directory and a plugins directory, but is not the correct place to install additional plugins.
Try untaring under the dropins directory instead. Modern versions of Eclipse will not pickup plugins overlaid over the existing plugins and features directories. If dropins doesn't work then these plugins declare dependencies on older versions of eclipse components.
Find out where your eclipse installation lies in terminal. I have mine extracted to ~/tools/eclipse/
$ which eclipse
Navigate to the folder and extract the plugins into the plugins folder, the features into the features folder.
Start Eclipse back up and go to Window->Preferences->QT. Click Add and navigate to the executable directory. For me as of version 4.8.1 it was in /Qt/Desktop/Qt/4.8.1/gcc/bin. The includes directory auto updated to /Qt/Desktop/Qt/4.8.1/gcc/include, click Apply and restart if necessary.
After this I can create a new Qt Gui projects, Qt gui classes, Qt resource files and Qt console projects in addition to Qt Designer forms.