문제

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?

도움이 되었습니까?

해결책

You want:

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top