Pregunta

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?

¿Fue útil?

Solución

You want:

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

Otros consejos

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top