Pergunta

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?

Foi útil?

Solução

You want:

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

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top