How to get working space in eclipse?

I am learning PDE (Eclipse plugin project).

I need to get a working space.

My text widget (swt) should be installed in the current workspace path.

How to get workspace path in eclipse?

+6
source share
2 answers

Do you want to:

ResourcesPlugin.getWorkspace().getRoot().getLocation().toString(); 
+20
source

File → Switch workspace → Another specified directory is the current workspace

+8
source

Source: https://habr.com/ru/post/969365/


All Articles