Frage

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?

War es hilfreich?

Lösung

You want:

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

Andere Tipps

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top