Hi Roy, i think the syntax i've posted is correct, also according to the php.net manual, so i've filed a bug, with a testcase attached:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=304951 regards, -robert On Mar 7, 2010, at 12:09 PM, Roy Ganor wrote: > Hi Robert, > According to php.net, one should prefix the class name with the identifier of > the namespace. > See http://www.php.net/manual/en/language.namespaces.importing.php > > Anyway, I see that content assist is not provided. Can you please open an > issue if one has not been submitted yet? > > Thanks, > Roy > From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On > Behalf Of Robert Gruendler > Sent: Friday, March 05, 2010 9:07 PM > To: PDT Developers > Subject: [pdt-dev] Code assist for Superclasses in another namespace > > Hi everyone, > > i'm testing code assistance for the default framework classes, and i don't get > any methods/fields from superclasses when the superclass is in another > namespace. > > Here's the example code: > > namespace Application\HelloBundle\Controller; > > use Symfony\Framework\WebBundle\Controller; > > class HelloController extends Controller > { > public function indexAction($name) > { > $this-> > } > } > > When the completion at $this-> starts, i only get the indexAction() method > suggested, > but none of the methods of the parent Symfony\Framework\WebBundle\Controller. > > However, when not pulling in the namespace with "use", but extending the > class directly > using the namespace notation, the completion works: > > namespace Application\HelloBundle\Controller; > > class HelloController extends Symfony\Framework\WebBundle\Controller > { > public function indexAction($name) > { > $this-> <--- now i get all superclass methods/fields > } > } > > Not sure if this should work already, so i thought i'll rather ask on the > list. > > > regards > > -robert > > > _______________________________________________ > pdt-dev mailing list > pdt-dev@eclipse.org > https://dev.eclipse.org/mailman/listinfo/pdt-dev
_______________________________________________ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev