Index
askubuntu.com/questions/80013/how-to-pin-eclipse-to-the-unity-launcher
For 12.04 and 11.10
First, create a .desktop file to eclipse:
gedit ~/.local/share/applications/opt_eclipse.desktop
Then, paste this inside (dont forget to edit Exec and Icon values):
[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=** something like /opt/eclipse/icon.xpm **
Exec= ** something like /opt/eclipse/eclipse **
Terminal=false
Categories=Development;IDE;Java;
After that, open that folder with nautilus:
nautilus ~/.local/share/applications
Add execution permission with right click Properties->Permissions->Allow execution...
And drop opt_eclipse.desktop to launcher.
or
askubuntu.com/questions/13758/how-can-i-edit-create-new-launcher-items-in-unity-by-hand