title: How to get workspace location in Eclipse 4.x
body: <p>I need to get workspace a location using API in Eclipse 4.x platform. I know that I can use </p>
  
  <pre><code>ResourcesPlugin.getWorkspace().getRoot().getLocation().toString();
  </code></pre>
  
  <p>but I'm wondering if there is another way to do that without static reference to <code>ResourcesPlugin</code>? For example using Dependency Injection..</p>
  
  <p>Thanks in advance
  Qinto.</p>