Vra

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 dit nuttig?

Oplossing

You want:

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

Ander wenke

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

Gelisensieer onder: CC-BY-SA met toeskrywing
Nie verbonde aan StackOverflow
scroll top