title: How to make Eclipse with PDT work with registered Joomla namespace aliases?
body: <p>What I'm trying to do is to start working under a Joomla! project in the Eclipse PHP IDE with PHP Development Tools installed. I use Eclipse Oxygen for PHP Development and work with a Joomla 3.8.2 project.</p>
  
  <p>After creating project and importing the code, I get validation errors about not being able to resolve some class to a type. For example:</p>
  
  <pre><code>$par = JComponentHelper::getParams('com_somecomponent');
  </code></pre>
  
  <p>This gives me a validation error: </p>
  
  <blockquote>
    <p>JComponentHelper cannot be resolved to a type.</p>
  </blockquote>
  
  <p>I assume this is due to the fact that <code>JComponentHelper</code> is a registered Joomla! alias and the real name is <code>\Joomla\CMS\Component\ComponentHelper</code>. How can I provide Eclipse with this information to be able to correctly resolve the namespace?</p>