how to get workspace path in eclipse? [closed]

大兔子大兔子 提交于 2019-12-08 17:18:40

问题


I am doing to study about PDE(Eclipse Plugin Project).

I need to get workspace path.

My text widget(swt) should to be set current workspace path.

How to get workspace path in eclipse?


回答1:


You want:

ResourcesPlugin.getWorkspace().getRoot().getLocation().toString();



回答2:


File -> Switch Workspace -> Other the shown directory is your current workspace



来源:https://stackoverflow.com/questions/23691464/how-to-get-workspace-path-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!