Search code examples
javaeclipseeclipse-pluginworkspacepde

how to get workspace path in eclipse?


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?


Solution

  • You want:

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