Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get workspace path in eclipse? [closed]

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?

like image 625
user3639147 Avatar asked May 16 '14 01:05

user3639147


2 Answers

You want:

ResourcesPlugin.getWorkspace().getRoot().getLocation().toString();
like image 137
Scary Wombat Avatar answered Oct 05 '22 20:10

Scary Wombat


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

like image 38
Omar HossamEldin Avatar answered Oct 05 '22 18:10

Omar HossamEldin