Question

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?

Was it helpful?

Solution

You want:

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top