Today I downloaded the adt-bundle, but after Eclipse is opened, the sidebar shows a greeting, and there is no way to pin it to the sidebar, which makes it cumbersome to go to the appropriate directory every time you open eclipse. We can set up eclipse in the following ways, so that eclipse can be pinned to the sidebar.
The following methods are excerpted from the Internet, their own settings are valid, recorded, convenient for later use
In previous versions of Ubuntu, creating a shortcut was to create a *.desktop file under the/usr/share/applications directory, which is also possible under ubuntu12.04
1, the new eclipse.desktop in the/usr/share/applications directory, the contents are as follows
1 [Desktop Entry] 2 type=application 3 name=eclipse 4 comment=eclipse 5 icon=/home/zhangshuli/ DESKTOP/ADT-BUNDLE-LINUX-X86_64-20140702/ECLIPSE/ICON.XPM 6 exec=/home/zhangshuli/desktop/ Adt-bundle-linux-x86_64-20140702/eclipse 7 Terminal=false 8 categories=development;ide; Java;
Attention:
Icon is the path of the icons, you use the graphical interface into the Eclipse directory, you will see a picture, the suffix may be different
exec is the Eclipse program path.
Previous version, this is done, but to show eclipse on unity, you need 2 more steps
2. After creating the desktop file, open dash, Search Eclipse, the Eclipse program will appear, click Open
3. After opening eclipse, the left sidebar will have the Eclipse icon, right-click to lock to the sidebar.
eclipse-12.04 no icon, cannot be pinned to sidebar