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?

有帮助吗?

解决方案

You want:

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

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top