سؤال

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