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?

Était-ce utile?

La solution

You want:

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

Autres conseils

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top