利用link机制安装eclipse插件
我们在安装eclipse插件时,通常是将其安装在<eclipse安装目录>的plugins和features目录下。当插件很多时,这会导致混乱。
eclipse提供了link机制来解决这个问题。下面以安装gef插件为例介绍如何使用link方法安装插件。假设eclipse 安装目录是c:/eclipse
1. 将gef安装包解压在某个目录,通常是eclipse安装目录中。于是得到
c:/eclipse/gef.我们会发现在该目录下还有一个包含plugins和features目录的eclipse目录
c:/eclipse/gef
features/
plugins/
2. 在eclipse目录下创建目录links
c:/eclipse/links
3. 创建gef 链接文件
c:/eclipse/links/gef.link
文件的内容是plugin所在路径
path=gef
注意:
- 当插件放置在eclipse安装目录外的其他目录时,需要使用全路径。比如 path=c:/myplugins/gef或path=c://myplugins//gef
- 将不用的link文件移到别的地方可以加快启动过程
- 安装完后,最好删除c:/configuration后重启eclipse
如何显示当前workspace路径
在启动eclipse时加上选项 -showocation (eclipse -showlocation), 或者在eclipse.ini文件中加上这个标志,当前workspace的路径会显示在eclipse的title bar