Domanda

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?

È stato utile?

Soluzione

You want:

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

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top