Re: [pdt-dev] Migrating to Git
Hi, thanks for the info. The main reason i was asking is because i was unsure if the cvs tree i'm using is still being used. Migrating it together with switching to maven/tycho absolutely makes sense! regards -robert On 7/6/12 14:52 , Jacek Pospycha?a wrote: One thing that's holding us back wrt migration is that PDT is still being built with Athena CBI. System that once popular, has been abandoned a while ago and it doesn't nicely support Git. I wanted to migrate to Git together with jump to Maven/Tycho based build, but it's more work. But if you're asking then maybe indeed we should switch to Git sooner while staying with current build. *From:* pdt-dev-boun...@eclipse.org [pdt-dev-boun...@eclipse.org] on behalf of Robert Gründler [r.gruend...@gmail.com] *Sent:* 06 July 2012 00:36 *To:* PDT Developers *Subject:* Re: [pdt-dev] Migrating to Git are there any news on the git migration? 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
[pdt-dev] Get selected codeassist proposal
Hi, is it possible to detect which element of a codeassist proposal has been chosen by the user? The use case would be to implement a ranking for multiple Types with the same name but different namespaces. Types that have been chosen recently could be ranked higher. regards -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] ModelException when calling newSuperTypeHierarchy() during indexing
Hi, i'm still trying to figure out how to get a complete supertype hierarchy during indexing of a PHP class. Here's a simple PHPIndexingVisitorExtension that produces the exception: public class TestIndexingVisitorExtension extends PhpIndexingVisitorExtension { @Override public boolean visit(TypeDeclaration s) throws Exception { try { if (s instanceof ClassDeclaration) { IType type = sourceModule.getType(s.getName()); ITypeHierarchy hierarchy = type.newSupertypeHierarchy(new NullProgressMonitor()); } } catch (ModelException e) { e.printStackTrace(); } return super.visit(s); } } The exception thrown is "SubTest [in SubTest.php [in src [in root> [in test does not exist" when calling type.newSupertypeHierarchy() The class SubTest does exist in the project, in fact it's the class that's open in the current editor. Am i using the API in a wrong way, or is this a bug? regards -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Execute PHP Script from extension
Hi all, is it possible to execute a PHP Script from the workspace in the background and get the output of the script? regards -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Check if any class in the superclasshierarchy implements an interface
Here's what i've come up with so far: BindingResolver resolver = new DefaultBindingResolver(sourceModule, sourceModule.getOwner()); IType type = sourceModule.getType(currentClass.getName()); PHPClassType evaluatedType = PHPClassType.fromIType(type); TypeBinding binding = new TypeBinding(resolver, evaluatedType, type); ITypeBinding typeBinding = Bindings.findTypeInHierarchy(binding, "Symfony\\Component\\DependencyInjection\\ContainerAwareInterface"); However, in the call to findTypeInHierarchy(), i'm getting a ModelException: org.eclipse.dltk.core.ModelException: UserController [in UserController.php [in Acme/DemoBundle/Controller [in src [in Test does not exist UserController is the class being indexed and the above 5 lines of code are being called inside the endvisit(ModuleDeclaration) of my IndexingVisitor. The Type definitely exists. Any ideas why i'm getting this Exception? thanks again, -robert On 10/27/11 4:01 PM, Robert Gruendler wrote: Hi, findTypeInHierarchy() expectes an ITypeBinding as the first parameter. In the IndexingVisitorExtension i only have AstNodes from the package /org.eclipse.php.internal.core.compiler.ast.nodes.*/ available. It looks like the TypeDeclarations from the /org.eclipse.php.internal.core.ast.nodes.*/ package have a method resolveTypeBinding() which returns an ITypeBinding. This raises a more general question: What's the difference between the AstNode classes in the 2 packages: org.eclipse.php.internal.core.compiler.ast.nodes.* org.eclipse.php.internal.core.ast.nodes.* And if i'm inside a PHPASTVisitor, can i convert the classes from the org.eclipse.php.internal.core.compiler.ast.nodes somehow to the corresponding org.eclipse.php.internal.core.ast.nodes.* class? regards -robert ps: i've tried to search the pdt source for any examples of findTypeInHierarchy(), but it looks like it's not being used anywhere. On 10/27/11 2:33 PM, Roy Ganor wrote: Hi, Try using org.eclipse.php.internal.core.ast.nodes.Bindings.findTypeInHierarchy(ITypeBinding, String) Roy -Original Message- From:pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On Behalf Of Robert Gruendler Sent: Thursday, October 27, 2011 12:36 PM To:pdt-dev@eclipse.org Subject: [pdt-dev] Check if any class in the superclasshierarchy implements an interface Hi, i'm trying to check in my IndexingVisitorExtension if a visited class implements a certain interface. The ClassDeclaration's "getSuperclasses()" method seemed to be a way to do this, but as it turns out it only evaluates the direct superclass and the direct implemented interfaces. So i'm wondering if i somehow can walk through the complete superclass hierarchy during indexing of a php class? 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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Check if any class in the superclasshierarchy implements an interface
Hi, findTypeInHierarchy() expectes an ITypeBinding as the first parameter. In the IndexingVisitorExtension i only have AstNodes from the package /org.eclipse.php.internal.core.compiler.ast.nodes.*/ available. It looks like the TypeDeclarations from the /org.eclipse.php.internal.core.ast.nodes.*/ package have a method resolveTypeBinding() which returns an ITypeBinding. This raises a more general question: What's the difference between the AstNode classes in the 2 packages: org.eclipse.php.internal.core.compiler.ast.nodes.* org.eclipse.php.internal.core.ast.nodes.* And if i'm inside a PHPASTVisitor, can i convert the classes from the org.eclipse.php.internal.core.compiler.ast.nodes somehow to the corresponding org.eclipse.php.internal.core.ast.nodes.* class? regards -robert ps: i've tried to search the pdt source for any examples of findTypeInHierarchy(), but it looks like it's not being used anywhere. On 10/27/11 2:33 PM, Roy Ganor wrote: Hi, Try using org.eclipse.php.internal.core.ast.nodes.Bindings.findTypeInHierarchy(ITypeBinding, String) Roy -Original Message- From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On Behalf Of Robert Gruendler Sent: Thursday, October 27, 2011 12:36 PM To: pdt-dev@eclipse.org Subject: [pdt-dev] Check if any class in the superclasshierarchy implements an interface Hi, i'm trying to check in my IndexingVisitorExtension if a visited class implements a certain interface. The ClassDeclaration's "getSuperclasses()" method seemed to be a way to do this, but as it turns out it only evaluates the direct superclass and the direct implemented interfaces. So i'm wondering if i somehow can walk through the complete superclass hierarchy during indexing of a php class? 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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Check if any class in the superclasshierarchy implements an interface
Hi, i'm trying to check in my IndexingVisitorExtension if a visited class implements a certain interface. The ClassDeclaration's "getSuperclasses()" method seemed to be a way to do this, but as it turns out it only evaluates the direct superclass and the direct implemented interfaces. So i'm wondering if i somehow can walk through the complete superclass hierarchy during indexing of a php class? regards -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Generate PHP code
one more question regarding the ast-rewriting. I've implemented a getter/setter generation for class fields, but the indentation is not set properly. Here's the PHP code generated by the TextEdit / rewrite operation: public function getController(){ return $this->controller; } public function setController(Controller $controller){ $this->controller=$controller; } Note that only the first line of each method is indented correctly. This is how i'm setting up the options for the program.rewrite() call: options = new HashMap(PHPCorePlugin.getOptions()); IScopeContext[] contents = new IScopeContext[] { new ProjectScope(type .getScriptProject() .getProject()), InstanceScope.INSTANCE, DefaultScope.INSTANCE }; for (int i = 0; i < contents.length; i++) { IScopeContext scopeContext = contents[i]; IEclipsePreferences inode = scopeContext.getNode(PHPCorePlugin.ID); if (inode != null) { if (!options.containsKey(PHPCoreConstants.FORMATTER_USE_TABS)) { String useTabs = inode.get(PHPCoreConstants.FORMATTER_USE_TABS,null); if (useTabs != null) { options.put(PHPCoreConstants.FORMATTER_USE_TABS, useTabs); } } if (!options.containsKey(PHPCoreConstants.FORMATTER_INDENTATION_SIZE)) { String size = inode.get(PHPCoreConstants.FORMATTER_INDENTATION_SIZE,null); if (size != null) { options.put(PHPCoreConstants.FORMATTER_INDENTATION_SIZE,size); } } } } Has anyone a hint why the other lines are not intented? regards -robert On 9/18/11 1:03 PM, Roy Ganor wrote: Yep, I recommend using the ASTRewriter functionality. See org.eclipse.php.core.tests.dom_ast.rewrite.ASTRewriteTests Roy -Original Message- From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On Behalf Of Robert Gruendler Sent: Friday, September 16, 2011 1:57 PM To: PDT Developers Subject: [pdt-dev] Generate PHP code Hi, i'm wondering what's the best way to generate PHP code from within a PDT extension. Is it possible to manually create an AST and "dump" it to a file somewhere? Or should i simply use template files and fill them with variables? cheers -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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Hosting PDT in an updatesite
Hi, as i am unable to provide new versions of my plugin to my users for an unknown time, i would like to host the current development version of PDT along with my plugins on http://pulse00.github.com/updatesite/ until the next maintenance release of PDT. Would this be ok for the PDT project, or am i running into licensing issues when hosting the plugin? regards -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Initialize buildpath and project structure in new project wizard
Hi, i'm extending the PDT Project Wizard to initialize new Projects with the structure for the Symfony framework Basically i'm doing the following: 1. Iterate the skeleton project and create the project folders/files recursively. 2. Create a IBuildpathEntry for the source folders 3. Call init() passing the script project and the buildpathentries. The code of the wizard page can be found here: https://github.com/pulse00/Symfony-2-Eclipse-Plugin/blob/master/com.dubture.symfony.ui/src/com/dubture/symfony/ui/wizards/project/SymfonyProjectWizardThirdPage.java#L53 The problem is that the Buildpathentries show up in the UI of the wizard and also the project structure is initialized correctly, but the .buildpath file does not contain the correct entries. It's the same like the default one from the PDT project wizard. Has anyone an idea what i'm missing here? Or is there a better way to achieve the initialization of a project? regards -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Generate PHP code
Hi, i'm wondering what's the best way to generate PHP code from within a PDT extension. Is it possible to manually create an AST and "dump" it to a file somewhere? Or should i simply use template files and fill them with variables? cheers -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Install latest nightly from hudson
Hi, until recently the nightly PDT builds were available via the hudson CI tool at https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/. Every build produced an artifact named something like pdt-Update-N[TIMESTAMP]>.zip It looks like the structure of the build system has been changed, as those files are not available anymore. Does anyone know how to install the nightly PDT build at the moment? regards -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] PDT 2.2 Project Plan
same here. although i really support the project and appreciate the help one receives as a developer on this list, the end-user information could be enhanced. For example it's a bit confusing that the current development version is presented as the first option in the installation wiki, whereas the current 2.2 build is broken, which imho is not such a good experience for people trying out pdt: https://bugs.eclipse.org/bugs/show_bug.cgi?id=305877 regards -robert On Mar 22, 2010, at 7:59 PM, Nikolai Plath wrote: > Sorry folks but... i second that > > Am 22.03.2010 08:26, schrieb Sjaak Eenhuis: >> This is not a project plan. Its a list consisting of alfanumeric codes with >> dates associated. >> >> >> M311/12/2010M3 milestone >> M412/18/2010M4 milestone >> >> etc >> >> The only thing this plan teaches us is that there are milestones, but they >> don't tell in what land they stand. >> >> Beside the fact that this table doesn't contain any usable data, the data >> that is inside is incorrect. We learn that milestone 3 will be delivered >> after the final product has been released. :-) >> >> As a pdt user I feel the urge to say something about this, because the last >> pdt release went online a long time ago, and the goals are still a secret. >> I would like to suggest that you seek out better ways to handle conflicting >> interests between Zend Studio and PDT, or if you feel this isn't the >> problem, we could try to find out the real cause. >> >> I understood that you have finished the rewrite with h2-indexing, maybe we >> could add this as an achievement on the plan page? This is a good message to >> all the people that suffers from autocompletion inertia. >> >> Btw I kind of love pdt. As an avid 'supporter' of this project I thank you >> all again for all the efforts made. >> >> >> >> >>> Subject: RE: [pdt-dev] PDT 2.2 Project Plan >>> Date: Sat, 20 Mar 2010 22:10:35 +0200 >>> From: r...@zend.com >>> To: pdt-dev@eclipse.org >>> >>> You can find the project plan for PDT here: >>> http://www.eclipse.org/projects/project-plan.php?projectid=tools.pdt >>> We are currently working on Eclipse PDT issues and fix issues marked as >>> P1. >>> >>> Anything in particular that you are searching for? >>> Roy >>> -Original Message- >>> From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] >>> On Behalf Of sNop >>> Sent: Saturday, March 20, 2010 12:17 AM >>> To: PDT Developers >>> Subject: Re: [pdt-dev] PDT 2.2 Project Plan >>> >>> Hi, >>> >>> i'm lacking actualizations of the PDT's webpages too. They should be >>> actualized more often. >>> >>> So the communication with PDT users is very bad. >>> >>> ___ >>> pdt-dev mailing list >>> pdt-dev@eclipse.org >>> https://dev.eclipse.org/mailman/listinfo/pdt-dev >>> >> >> _ >> Het laatste nieuws, shownieuws en voetbalnieuws op MSN.nl >> http://nl.msn.com/___ >> 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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Code assist for Superclasses in another namespace
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
[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
Re: [pdt-dev] No code assistance for PHP Language Library
some more info: the root for that exception seems to be in org.eclipse.dltk.internal.core.index2.IndexerManager, line 47: IConfigurationElement[] elements = Platform.getExtensionRegistry() .getConfigurationElementsFor(INDEXER_POINT); The elements Array is empty, so the indexer field is null. regards -robert On Mar 3, 2010, at 10:10 PM, Robert Gruendler wrote: > i was looking at the .log file of the workspace which doesn't have code > assistance, > and i'm getting this exception everytime i trigger code assistance: > > !MESSAGE PHPCore plugin internal error > !STACK 0 > java.lang.NullPointerException > at java.util.Arrays$ArrayList.(Arrays.java:3357) > at java.util.Arrays.asList(Arrays.java:3343) > at > org.eclipse.php.internal.core.codeassist.strategies.GlobalTypesStrategy.getTypes(GlobalTypesStrategy.java:120) > at > org.eclipse.php.internal.core.codeassist.strategies.GlobalTypesStrategy.apply(GlobalTypesStrategy.java:74) > at > org.eclipse.php.internal.core.codeassist.strategies.GlobalElementsCompositeStrategy.apply(GlobalElementsCompositeStrategy.java:43) > at > org.eclipse.php.internal.core.codeassist.PHPCompletionEngine.complete(PHPCompletionEngine.java:89) > at org.eclipse.dltk.internal.core.Openable$1.run(Openable.java:494) > > > Seems like the code assistance is activated, and the reason for no code > assistance is an internal exception. > > Another thing that points into that direction is that code assistance isn't > working at a project scope, ie: > > public class Foo { > > protected $bar; > > public function test() { > > $this-> <--- triggers the exception too. > > } > > } > > regards > > -robert > > > > On Mar 3, 2010, at 4:56 PM, Robert Gruendler wrote: > >> is there any temporary workaround to re-activate the code assistance for >> the language library ? >> >> >> regards >> >> -robert >> >> >> >> >> On Mar 3, 2010, at 3:47 PM, Roy Ganor wrote: >> >>> Hi Alex, I see that Mylyn-DLTK bridge plugin is the only one that plays >>> with these preferences. Probably for wrapping things with its own proposals >>> list. >>> Anyway, the unpleasant situation where empty proposals list is shown should >>> be fixes somehow. >>> >>> Thanks! >>> Roy >>> From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On >>> Behalf Of Alex Panchenko >>> Sent: Wednesday, March 03, 2010 4:30 PM >>> To: PDT Developers >>> Subject: Re: [pdt-dev] No code assistance for PHP Language Library >>> >>> JDT has preference page to manage them, DLTK uses preferences but without >>> preference page. >>> Actually I couldn't find the code changing it, but I remember once it was >>> somehow disabled in my development workspace. >>> >>> Regards, >>> Alex >>> >>> - Original Message - >>> From: "Roy Ganor" >>> To: "PDT Developers" >>> Sent: Wednesday, March 3, 2010 8:19:00 PM GMT +06:00 Almaty, Novosibirsk >>> Subject: RE: [pdt-dev] No code assistance for PHP Language Library >>> >>> BTW, any reason why a user would select to disable the script category? You >>> mentioned on exception but it seems odd to me that it is common. >>> Are there other situations where this category can be disabled? >>> >>> Thanks! >>> Roy >>> From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On >>> Behalf Of Alex Panchenko >>> Sent: Wednesday, March 03, 2010 3:54 PM >>> To: PDT Developers >>> Subject: Re: [pdt-dev] No code assistance for PHP Language Library >>> >>> Hi, >>> >>> It's possible that PDT proposal computer was disabled in preferences (e.g. >>> if exception was thrown), so it makes sense to test in a *new* workspace. >>> >>> Regards, >>> Alex >>> >>> - Original Message - >>> From: "Roy Ganor" >>> To: "PDT Developers" >>> Sent: Wednesday, March 3, 2010 7:56:24 PM GMT +06:00 Almaty, Novosibirsk >>> Subject: RE: [pdt-dev] No code assistance for PHP Language Library >>> >>> Hi Robert, >>> Can you share your .settings folder, .buildpath and .project files? >>> >>> Best regards, >>> Roy >>> From:
Re: [pdt-dev] No code assistance for PHP Language Library
i was looking at the .log file of the workspace which doesn't have code assistance, and i'm getting this exception everytime i trigger code assistance: !MESSAGE PHPCore plugin internal error !STACK 0 java.lang.NullPointerException at java.util.Arrays$ArrayList.(Arrays.java:3357) at java.util.Arrays.asList(Arrays.java:3343) at org.eclipse.php.internal.core.codeassist.strategies.GlobalTypesStrategy.getTypes(GlobalTypesStrategy.java:120) at org.eclipse.php.internal.core.codeassist.strategies.GlobalTypesStrategy.apply(GlobalTypesStrategy.java:74) at org.eclipse.php.internal.core.codeassist.strategies.GlobalElementsCompositeStrategy.apply(GlobalElementsCompositeStrategy.java:43) at org.eclipse.php.internal.core.codeassist.PHPCompletionEngine.complete(PHPCompletionEngine.java:89) at org.eclipse.dltk.internal.core.Openable$1.run(Openable.java:494) Seems like the code assistance is activated, and the reason for no code assistance is an internal exception. Another thing that points into that direction is that code assistance isn't working at a project scope, ie: public class Foo { protected $bar; public function test() { $this-> <--- triggers the exception too. } } regards -robert On Mar 3, 2010, at 4:56 PM, Robert Gruendler wrote: > is there any temporary workaround to re-activate the code assistance for > the language library ? > > > regards > > -robert > > > > > On Mar 3, 2010, at 3:47 PM, Roy Ganor wrote: > >> Hi Alex, I see that Mylyn-DLTK bridge plugin is the only one that plays with >> these preferences. Probably for wrapping things with its own proposals list. >> Anyway, the unpleasant situation where empty proposals list is shown should >> be fixes somehow. >> >> Thanks! >> Roy >> From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On >> Behalf Of Alex Panchenko >> Sent: Wednesday, March 03, 2010 4:30 PM >> To: PDT Developers >> Subject: Re: [pdt-dev] No code assistance for PHP Language Library >> >> JDT has preference page to manage them, DLTK uses preferences but without >> preference page. >> Actually I couldn't find the code changing it, but I remember once it was >> somehow disabled in my development workspace. >> >> Regards, >> Alex >> >> - Original Message - >> From: "Roy Ganor" >> To: "PDT Developers" >> Sent: Wednesday, March 3, 2010 8:19:00 PM GMT +06:00 Almaty, Novosibirsk >> Subject: RE: [pdt-dev] No code assistance for PHP Language Library >> >> BTW, any reason why a user would select to disable the script category? You >> mentioned on exception but it seems odd to me that it is common. >> Are there other situations where this category can be disabled? >> >> Thanks! >> Roy >> From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On >> Behalf Of Alex Panchenko >> Sent: Wednesday, March 03, 2010 3:54 PM >> To: PDT Developers >> Subject: Re: [pdt-dev] No code assistance for PHP Language Library >> >> Hi, >> >> It's possible that PDT proposal computer was disabled in preferences (e.g. >> if exception was thrown), so it makes sense to test in a *new* workspace. >> >> Regards, >> Alex >> >> - Original Message - >> From: "Roy Ganor" >> To: "PDT Developers" >> Sent: Wednesday, March 3, 2010 7:56:24 PM GMT +06:00 Almaty, Novosibirsk >> Subject: RE: [pdt-dev] No code assistance for PHP Language Library >> >> Hi Robert, >> Can you share your .settings folder, .buildpath and .project files? >> >> Best regards, >> Roy >> From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On >> Behalf Of Robert Gruendler >> Sent: Wednesday, March 03, 2010 2:08 PM >> To: PDT Developers >> Subject: [pdt-dev] No code assistance for PHP Language Library >> >> Hi all, >> >> i don't get any code assistance for the php language library in php projects. >> >> The only assistance that shows up,are the template proposals, like >> try/catch, fn etc. >> >> My PDT extension is completely disabled in the run environment, and i've >> tested this >> bug also on a standalone eclipse installation with the latest pdt 2.2. >> >> Version Info: >> Eclipse: 3.5.2 Build id: M20100211-1343 >> DLTK: 2.0.0 (CVS HEAD) >> PDT: 2.2.0 (CVS HEAD) >> >> Anyone else experiencing this problem? >> >> re
Re: [pdt-dev] No code assistance for PHP Language Library
is there any temporary workaround to re-activate the code assistance for the language library ? regards -robert On Mar 3, 2010, at 3:47 PM, Roy Ganor wrote: > Hi Alex, I see that Mylyn-DLTK bridge plugin is the only one that plays with > these preferences. Probably for wrapping things with its own proposals list. > Anyway, the unpleasant situation where empty proposals list is shown should > be fixes somehow. > > Thanks! > Roy > From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On > Behalf Of Alex Panchenko > Sent: Wednesday, March 03, 2010 4:30 PM > To: PDT Developers > Subject: Re: [pdt-dev] No code assistance for PHP Language Library > > JDT has preference page to manage them, DLTK uses preferences but without > preference page. > Actually I couldn't find the code changing it, but I remember once it was > somehow disabled in my development workspace. > > Regards, > Alex > > - Original Message - > From: "Roy Ganor" > To: "PDT Developers" > Sent: Wednesday, March 3, 2010 8:19:00 PM GMT +06:00 Almaty, Novosibirsk > Subject: RE: [pdt-dev] No code assistance for PHP Language Library > > BTW, any reason why a user would select to disable the script category? You > mentioned on exception but it seems odd to me that it is common. > Are there other situations where this category can be disabled? > > Thanks! > Roy > From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On > Behalf Of Alex Panchenko > Sent: Wednesday, March 03, 2010 3:54 PM > To: PDT Developers > Subject: Re: [pdt-dev] No code assistance for PHP Language Library > > Hi, > > It's possible that PDT proposal computer was disabled in preferences (e.g. if > exception was thrown), so it makes sense to test in a *new* workspace. > > Regards, > Alex > > - Original Message - > From: "Roy Ganor" > To: "PDT Developers" > Sent: Wednesday, March 3, 2010 7:56:24 PM GMT +06:00 Almaty, Novosibirsk > Subject: RE: [pdt-dev] No code assistance for PHP Language Library > > Hi Robert, > Can you share your .settings folder, .buildpath and .project files? > > Best regards, > Roy > From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On > Behalf Of Robert Gruendler > Sent: Wednesday, March 03, 2010 2:08 PM > To: PDT Developers > Subject: [pdt-dev] No code assistance for PHP Language Library > > Hi all, > > i don't get any code assistance for the php language library in php projects. > > The only assistance that shows up,are the template proposals, like try/catch, > fn etc. > > My PDT extension is completely disabled in the run environment, and i've > tested this > bug also on a standalone eclipse installation with the latest pdt 2.2. > > Version Info: > Eclipse: 3.5.2 Build id: M20100211-1343 > DLTK: 2.0.0 (CVS HEAD) > PDT: 2.2.0 (CVS HEAD) > > Anyone else experiencing this problem? > > 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 > ___ > 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
Re: [pdt-dev] No code assistance for PHP Language Library
here's the org.eclipse.dltk.ui.preferences file: #Wed Mar 03 15:24:41 CET 2010 useAnnotationsPrefPage=true lastRecentlyUsedFilters=org.eclipse.php.ui.explorer.DotFilesFilter, org.eclipse.php.ui.explorer.RSEProjectFilter=true eclipse.preferences.version=1 sourceHoverBackgroundColor.SystemDefault=true CustomFiltersActionGroup.org.eclipse.php.ui.explorer.TAG_DUMMY_TO_TEST_EXISTENCE=storedViewPreferences sourceHoverBackgroundColor=255,255,225 useQuickDiffPrefPage=true -robert On Mar 3, 2010, at 3:33 PM, Roy Ganor wrote: > Thanks, > Since I see that org.eclipse.php.core.LANGUAGE is installed, I can only guess > that Alex is right in his observation that the script proposals were filtered > somehow. > Can you please send another file > .metadata/plugins/org.eclipse.core.runtime/.settings/org.eclipse.dltk.ui.preferences. > > Thanks! > Roy > From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On > Behalf Of Robert Gruendler > Sent: Wednesday, March 03, 2010 4:25 PM > To: PDT Developers > Subject: Re: [pdt-dev] No code assistance for PHP Language Library > > Hi Roy, > > here you go: > > .settings/org.eclipse.php.core.prefs: > > #Wed Mar 03 15:21:13 CET 2010 > eclipse.preferences.version=1 > include_path=0;/asdf > > .buildpath: > > > > > > > > .project > > > >asdf > > > > > > org.eclipse.wst.validation.validationbuilder > > > > > org.eclipse.dltk.core.scriptbuilder > > > > > > org.eclipse.php.core.PHPNature > > > > > On Mar 3, 2010, at 2:56 PM, Roy Ganor wrote: > > > Hi Robert, > Can you share your .settings folder, .buildpath and .project files? > > Best regards, > Roy > From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On > Behalf Of Robert Gruendler > Sent: Wednesday, March 03, 2010 2:08 PM > To: PDT Developers > Subject: [pdt-dev] No code assistance for PHP Language Library > > Hi all, > > i don't get any code assistance for the php language library in php projects. > > The only assistance that shows up,are the template proposals, like try/catch, > fn etc. > > My PDT extension is completely disabled in the run environment, and i've > tested this > bug also on a standalone eclipse installation with the latest pdt 2.2. > > Version Info: > Eclipse: 3.5.2 Build id: M20100211-1343 > DLTK: 2.0.0 (CVS HEAD) > PDT: 2.2.0 (CVS HEAD) > > Anyone else experiencing this problem? > > 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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] No code assistance for PHP Language Library
H Alex, i tested it in a fresh workspace, same problem. Where exactly can the PDT proposal computer disabled? I couldn't find it on the php preference page. regards, -robert On Mar 3, 2010, at 2:53 PM, Alex Panchenko wrote: > Hi, > > It's possible that PDT proposal computer was disabled in preferences (e.g. if > exception was thrown), so it makes sense to test in a *new* workspace. > > Regards, > Alex > > - Original Message - > From: "Roy Ganor" > To: "PDT Developers" > Sent: Wednesday, March 3, 2010 7:56:24 PM GMT +06:00 Almaty, Novosibirsk > Subject: RE: [pdt-dev] No code assistance for PHP Language Library > > Hi Robert, > Can you share your .settings folder, .buildpath and .project files? > > Best regards, > Roy > From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On > Behalf Of Robert Gruendler > Sent: Wednesday, March 03, 2010 2:08 PM > To: PDT Developers > Subject: [pdt-dev] No code assistance for PHP Language Library > > Hi all, > > i don't get any code assistance for the php language library in php projects. > > The only assistance that shows up,are the template proposals, like try/catch, > fn etc. > > My PDT extension is completely disabled in the run environment, and i've > tested this > bug also on a standalone eclipse installation with the latest pdt 2.2. > > Version Info: > Eclipse: 3.5.2 Build id: M20100211-1343 > DLTK: 2.0.0 (CVS HEAD) > PDT: 2.2.0 (CVS HEAD) > > Anyone else experiencing this problem? > > 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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] No code assistance for PHP Language Library
Hi Roy, here you go: .settings/org.eclipse.php.core.prefs: #Wed Mar 03 15:21:13 CET 2010 eclipse.preferences.version=1 include_path=0;/asdf .buildpath: .project asdf org.eclipse.wst.validation.validationbuilder org.eclipse.dltk.core.scriptbuilder org.eclipse.php.core.PHPNature On Mar 3, 2010, at 2:56 PM, Roy Ganor wrote: > Hi Robert, > Can you share your .settings folder, .buildpath and .project files? > > Best regards, > Roy > From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On > Behalf Of Robert Gruendler > Sent: Wednesday, March 03, 2010 2:08 PM > To: PDT Developers > Subject: [pdt-dev] No code assistance for PHP Language Library > > Hi all, > > i don't get any code assistance for the php language library in php projects. > > The only assistance that shows up,are the template proposals, like try/catch, > fn etc. > > My PDT extension is completely disabled in the run environment, and i've > tested this > bug also on a standalone eclipse installation with the latest pdt 2.2. > > Version Info: > Eclipse: 3.5.2 Build id: M20100211-1343 > DLTK: 2.0.0 (CVS HEAD) > PDT: 2.2.0 (CVS HEAD) > > Anyone else experiencing this problem? > > 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
[pdt-dev] No code assistance for PHP Language Library
Hi all, i don't get any code assistance for the php language library in php projects. The only assistance that shows up,are the template proposals, like try/catch, fn etc. My PDT extension is completely disabled in the run environment, and i've tested this bug also on a standalone eclipse installation with the latest pdt 2.2. Version Info: Eclipse: 3.5.2 Build id: M20100211-1343 DLTK: 2.0.0 (CVS HEAD) PDT: 2.2.0 (CVS HEAD) Anyone else experiencing this problem? regards -robert___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Extending the project wizard
I don't think if that's really necessary. I've something like this working now, by extending the PHPProjectCreationWizard, and overriding the addPages() method, where i added my custom page. If you need to add stuff to specific pages, you can extend the specific page too and override createControl(Composite parent) method. Do you think this approach has disadvantages ? best -robert On Mar 1, 2010, at 3:02 PM, Alex Panchenko wrote: > Hi Robert, > > Not yet. I'll try to find some time for it during March. > Thanks for reminder :) > > Regards, > Alex > > - Original Message - > From: "Robert Gruendler" > To: "PDT Developers" > Sent: Thursday, February 25, 2010 2:31:37 AM GMT +06:00 Almaty, Novosibirsk > Subject: Re: [pdt-dev] Extending the project wizard > > Hi Alex, > > is the refactoring regarding the ProjectWizard done ? > > thanks! > > -robert > > > On Nov 14, 2009, at 4:17 AM, Alex Panchenko wrote: > >> Hi, >> >> The plan is to move some code parts from TCL project wizard into base DLTK >> project wizard. >> I hope to do it before Christmas. >> >> Regards, >> Alex >> >> - Original Message - >> From: "Robert Gründler" >> To: pdt-dev@eclipse.org >> Sent: Saturday, November 14, 2009 1:41:44 AM GMT +06:00 Almaty, Novosibirsk >> Subject: Re: [pdt-dev] Extending the project wizard >> >> Hi again, >> >> the DLTK team recommended me to have a look at the TCL Project Creation >> wizard, however, it simply >> extends the dltk project wizard, which means i would need to implement >> the Project wizard for the framework >> completely by scratch, plus re-implement the functionality the php >> project wizard provides right now. >> >> Are there any plans for the near future to implement either the >> wizard-extension points or the solution >> recommended by Konstantin using the facet project framework? >> >> best >> >> -robert >> >> >> >> >> Am 11/6/09 6:45 PM, schrieb Michael Spector: >>> I think it's a question to DLTK team, since PDT extends DLTK's project >>> wizard. >>> >>> Best regards, >>> Michael >>> >>> On Fri, Nov 6, 2009 at 7:37 PM, Konstantin Komissarchik >>> wrote: >>> >>>> PDT Team, >>>> >>>> As a side note, has there been any further thoughts on utilizing faceted >>>> project framework in PDT? Using the framework would give extenders like >>>> Robert a natural way to build on PDT projects with little effort on the >>>> part >>>> of PDT. >>>> >>>> - Konstantin >>>> >>>> >>>> -Original Message- >>>> From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On >>>> Behalf Of Robert Gründler >>>> Sent: Friday, November 06, 2009 9:32 AM >>>> To: pdt-dev@eclipse.org >>>> Subject: [pdt-dev] Extending the project wizard >>>> >>>> Hi, >>>> >>>> i would like to extend the php project wizard, but according to this post >>>> to the mailing list, the phpwizardpages extension is not used anymore: >>>> >>>> http://dev.eclipse.org/newslists/news.eclipse.tools.pdt/msg03659.html >>>> >>>> Does anoyne know if it's possible to add some UI elements to the >>>> pdt "New Project..." wizard ? >>>> >>>> >>>> thanks ! >>>> >>>> >>>> -robert >>>> ___ >>>> pdt-dev mailing list >>>> pdt-dev@eclipse.org >>>> https://dev.eclipse.org/mailman/listinfo/pdt-dev >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG - www.avg.com >>>> Version: 8.5.425 / Virus Database: 270.14.51/2482 - Release Date: 11/06/09 >>>> 07:38:00 >>>> >>>> ___ >>>> 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 >>> >> >> ___ >> 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 > > ___ > 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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] API Change in PHPSourceParserFactory
Hi all, i've updated an older PDT Development Project which runs on Eclipse 3.5, and after updating PDT from cvs i get an compile error in my IBuildParticipant: @Override public void build(IBuildContext context) throws CoreException { try { char[] fileName = context.getFile().getName().toCharArray(); PHPSourceParserFactory parser = new PHPSourceParserFactory(); ModuleDeclaration module = parser.parse(fileName, context.getContents(), new NullProblemReporter()); module.traverse(new CakeASTVisitor(context)); } catch (Exception e) { e.printStackTrace(); } } The method parse(IModuleSource, IProblemReporter) in the type PHPSourceParserFactory is not applicable for the arguments (char[], char[], NullProblemReporter) Does anyone know how i can get hands on the IModuleSource to pass to the parse method of the PHPSourceParserFactory ? thanks! -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Newbie question: asking for help to get a PDT development environment setup
I've checked out the latest cvs version, but i get a couple of build errors: IStructuredTextFoldingProvider cannot be resolved to a type StructuredTextFoldingProviderPHP.java /org.eclipse.php.ui/src/org/eclipse/php/internal/ui/folding line 62 Java Problem It seems the import org.eclipse.wst.sse.ui.internal.projection.IStructuredTextFoldingProvider; can't be resolved. Anyone knows which package i'm missing? thanks! -robert On Feb 15, 2010, at 6:30 AM, 赵忠伟 wrote: > Hi,David > > You can have a look at http://wiki.eclipse.org/Extending_PDT_2.2 > > My development environment is eclipse 3.5 modeling version(it is a little > big,300M+) + wtp + dltk source code. > > And by the way,if you want this feature,you also could submit a bug about > this.Recently I have fixed a bug(bug 201108,but not upload the patch yet) > like this very much. > > On Mon, Feb 15, 2010 at 12:40 AM, David Négrier > wrote: > Hi list, > > First of all, a big thanks to all the developers working on PDT. I've been > using it for years, and it's definitely a great tool. > I'm writing this mail because I would like to try improving the autocomplete > feature, but since I'm a bit of a noob regarding Eclipse plug-in development, > I'd need just some hints to get started. > > In short, here is what I'm trying to do: > > I would like to improve PDT so that it can autocomplete arrays. > > For instance, imagine a sample code like this: > > class MyClass { > public $a; > } > > /** > * @return array > */ > function myFunc() { > return array(new MyClass()); > } > > $arr = myFunc(); > foreach ($arr as $elem) { > $elem-> /** Here, we would get some autocompletion on the MyClass > fields */ > } > I would like to code the support for the "array" notation (similar to > C++ templates or Java annotations). > In most of PHP code I'm writing, methods and functions are returning arrays. > And we don't have a correct autocompletion for these. I would like to address > this issue. > > I've had a quick look at PDT code, and I found in PHPSimpleTypes.java that > all arrays are modeled using the DLTK MultiTypeType class. I'm not a DLTK > expert, but it seems that MultiTypeType class accepts inner types using the > addType method. > > So basically, I don't know if it can be easily done, but I would like to give > a try and implement this support for "generics" in PDT. My problem: I'm an > experienced Java and PHP developer, but I'm a complete newbie regarding > Eclipse plug-in development. > Of course, I read the PDT wiki, especially this page: > http://wiki.eclipse.org/PDT_Development_Environment > Then, I tried to install the environment. > Here is the step I followed: > > Since I wanted the latest trunk version of PDT, I tried to set-up an > up-to-date environement. > > The PDT wiki is a bit lacking information about it, certainly because this is > a common task for Eclipse plug-in developers. > > Step 1: I downloaded the "Eclipse RPC" release > Step 2: I started Eclipse, opened a new workspace, and Added those 2 update > sites: > - http://download.eclipse.org/releases/galileo (the default Eclipse > repository) > - http://download.eclipse.org/tools/mylyn/update/e3.4/ (the Mylin update > site) > > Then, I added those plugins: > - Web Page Editor > - Eclipse XML Editors and Tools > - Eclipse Web Developer Tools > > Now, I think I understood PDT 2.2 is using DLTK 2.0. Right now, I couldn't > get an update site for DLTK 2.0 (or I did not find it) so I downloaded it > from the DLTK website: > - http://download.eclipse.org/technology/dltk/downloads/ > I grabed the latest version (2.0M5) of the plugin and I unpacked it into the > Eclipse directory. > I downloaded 2 files: "Core Frameworks" and "DLTK Mylyn Intergation" > > Step 3: I followed instruction on the PDT wiki here: > - http://wiki.eclipse.org/PDT_Development_Environment > > Now, I have an environment that seems to be setup. There is no compilation > error, so I thought everything was ok. > But I'm unable to start or export the project. When I open the PHPIde.product > file and go to the "Dependencies" tab, I'm realize I'm missing many > dependencies (org.eclipse.dltk.core.index, org.eclipse.emf, org.eclipse.xsd, > etc...) > > So I'm a bit lost. Is there a place where I could find the list of plugins > that need to be installed to get a working PDT 2.2 environment? > Should I use a branch instead of the trunk? > Did I miss something? Should I start with another base Eclipse distribution? > Would any of you developers have suggestions regarding nice articles > explaining how to get started with Eclipse plugins or DLTK? > > Any help getting started would be greatly appreciated. > > Regards, > -- > David Négrier > > > ___ > pdt-dev mailing list > pdt-dev@eclipse.org > https://dev.eclipse.org/mailman/listinfo/pdt-dev > > > > > -- > > Tha
Re: [pdt-dev] Extending the project wizard
Hi Alex, is the refactoring regarding the ProjectWizard done ? thanks! -robert On Nov 14, 2009, at 4:17 AM, Alex Panchenko wrote: > Hi, > > The plan is to move some code parts from TCL project wizard into base DLTK > project wizard. > I hope to do it before Christmas. > > Regards, > Alex > > - Original Message - > From: "Robert Gründler" > To: pdt-dev@eclipse.org > Sent: Saturday, November 14, 2009 1:41:44 AM GMT +06:00 Almaty, Novosibirsk > Subject: Re: [pdt-dev] Extending the project wizard > > Hi again, > > the DLTK team recommended me to have a look at the TCL Project Creation > wizard, however, it simply > extends the dltk project wizard, which means i would need to implement > the Project wizard for the framework > completely by scratch, plus re-implement the functionality the php > project wizard provides right now. > > Are there any plans for the near future to implement either the > wizard-extension points or the solution > recommended by Konstantin using the facet project framework? > > best > > -robert > > > > > Am 11/6/09 6:45 PM, schrieb Michael Spector: >> I think it's a question to DLTK team, since PDT extends DLTK's project >> wizard. >> >> Best regards, >> Michael >> >> On Fri, Nov 6, 2009 at 7:37 PM, Konstantin Komissarchik >> wrote: >> >>> PDT Team, >>> >>> As a side note, has there been any further thoughts on utilizing faceted >>> project framework in PDT? Using the framework would give extenders like >>> Robert a natural way to build on PDT projects with little effort on the part >>> of PDT. >>> >>> - Konstantin >>> >>> >>> -Original Message- >>> From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On >>> Behalf Of Robert Gründler >>> Sent: Friday, November 06, 2009 9:32 AM >>> To: pdt-dev@eclipse.org >>> Subject: [pdt-dev] Extending the project wizard >>> >>> Hi, >>> >>> i would like to extend the php project wizard, but according to this post >>> to the mailing list, the phpwizardpages extension is not used anymore: >>> >>> http://dev.eclipse.org/newslists/news.eclipse.tools.pdt/msg03659.html >>> >>> Does anoyne know if it's possible to add some UI elements to the >>> pdt "New Project..." wizard ? >>> >>> >>> thanks ! >>> >>> >>> -robert >>> ___ >>> pdt-dev mailing list >>> pdt-dev@eclipse.org >>> https://dev.eclipse.org/mailman/listinfo/pdt-dev >>> >>> No virus found in this incoming message. >>> Checked by AVG - www.avg.com >>> Version: 8.5.425 / Virus Database: 270.14.51/2482 - Release Date: 11/06/09 >>> 07:38:00 >>> >>> ___ >>> 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 >> > > ___ > 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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Unable to open editor
Hi all, i'm using pdt 2.2 and dltk 2.0 in eclipse 3.5. After updating dltk to the latest version, i cannot open php editors anymore. I've filed a bug report with the full stack trace here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=302801 Should the current pdt version from http://download.eclipse.org/tools/pdt/updates/2.2/interim/ work with latest dlkt version? Thanks -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] How to add code-completion for PHP Framework
Hi Roy, i managed to add existing IMethods to the php code assistance using the completionStrategyFactory. However, when adding types to ICompletionReporter using reporter.reportXXX(), the type i'm adding must already exist in the model as far as i've understood. I have a use case, where variables are added to view templates by the framework, using FrameworkController::set('a', 'b'). So basically this would look like this: In the Controller: $myObject = new MyObject(); $this->set('foo', $myObject); In the view file: $ | <-- in this completeion context, there should be a variable $foo $foo-> | << in this context, foo should offer possible completions for the type MyObject. Do i need to add additional ModelElements using some extensionPoint like PHPMixinVisitor during the build, so i can add them later in the completionStrategy for this kind of completion? best -robert On 10/29/2009 6:08 AM, Roy Ganor wrote: Hi Robert, org.eclipse.php.core.completionStrategyFactories and org.eclipse.php.core.completionContextResolvers are good starting points. Roy -Original Message- From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On Behalf Of Robert Gruendler Sent: Thursday, October 29, 2009 10:58 PM To: pdt-dev@eclipse.org Subject: Re: [pdt-dev] How to add code-completion for PHP Framework Hi again, one more question regarding code completion extensions: Some framework classes use "components", which are declared in a class variable, like this: $components = array('Foo', 'Bar'); After declaring those components, the fields 'Foo' and 'Bar', are accessible via $this->Foo and $this->Bar. Any hint which extension point i should use to add those fields to the code completion of classes which declare the $components array ? thanks! -robert On 10/28/2009 7:45 AM, rob...@dubture.com wrote: Hi Michael, thanks a lot, this got me started, it's working fine now. best -robert On Wed, 28 Oct 2009 13:08:58 +0200, Michael Spector wrote: Hi Robert, I think goalEvaluatorFactories extension point would be sufficient for this specific purpose. You just need to add a rule that evaluates structures like: ClassRegistry::init('MyObject'), and returns type (MyObject) for such cases. Take a look at org.eclipse.php.internal.core.typeinference.evaluators.InstanceCreationEvaluator as an example, which evaluates structures like: new MyObject(). Best regards, Michael On Wed, Oct 28, 2009 at 1:03 PM, wrote: Hi all, i'm trying to write an eclipse plugin for the Cakephp framework, and i'd like to start off with some additional framework-specific code assistance. The framework uses a central "ClassRegistry" factory for object instantiation. So, there's no "new" keyword for some objects, for example: $myObject = ClassRegistry::init('MyObject'); Basically i would like to give a hint to PDT that the variable "$myObject" is an instance of the "MyObject" class, which has already been loaded into the PDT Model, so i guess i would simply point to the "MyObject" IType in the Model somehow. Could anyone give me a hint what would be the best method to accomplish this? I've already had a look at the extension points "completionStrategyFactories"/"completionContextResolvers" and "goalEvaluatorFactories", but i'm not sure what's the best way to hook into PDT for this kind of thing. Thanks! -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 ___ 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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Replacement for PHPModelUtils.getClasses()
Hi all, i'v updated to the latest version of PDT using cvs, and realized the the method i used to search for classes in the Model does not exist anymore: PHPModelUtils.getClasses(). Does anyone know what is the best way to search for a specific type when i only have a String containing the name of the class to search for with the latest API ? thanks ! -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] How to add code-completion for PHP Framework
Hi again, one more question regarding code completion extensions: Some framework classes use "components", which are declared in a class variable, like this: $components = array('Foo', 'Bar'); After declaring those components, the fields 'Foo' and 'Bar', are accessible via $this->Foo and $this->Bar. Any hint which extension point i should use to add those fields to the code completion of classes which declare the $components array ? thanks! -robert On 10/28/2009 7:45 AM, rob...@dubture.com wrote: Hi Michael, thanks a lot, this got me started, it's working fine now. best -robert On Wed, 28 Oct 2009 13:08:58 +0200, Michael Spector wrote: Hi Robert, I think goalEvaluatorFactories extension point would be sufficient for this specific purpose. You just need to add a rule that evaluates structures like: ClassRegistry::init('MyObject'), and returns type (MyObject) for such cases. Take a look at org.eclipse.php.internal.core.typeinference.evaluators.InstanceCreationEvaluator as an example, which evaluates structures like: new MyObject(). Best regards, Michael On Wed, Oct 28, 2009 at 1:03 PM, wrote: Hi all, i'm trying to write an eclipse plugin for the Cakephp framework, and i'd like to start off with some additional framework-specific code assistance. The framework uses a central "ClassRegistry" factory for object instantiation. So, there's no "new" keyword for some objects, for example: $myObject = ClassRegistry::init('MyObject'); Basically i would like to give a hint to PDT that the variable "$myObject" is an instance of the "MyObject" class, which has already been loaded into the PDT Model, so i guess i would simply point to the "MyObject" IType in the Model somehow. Could anyone give me a hint what would be the best method to accomplish this? I've already had a look at the extension points "completionStrategyFactories"/"completionContextResolvers" and "goalEvaluatorFactories", but i'm not sure what's the best way to hook into PDT for this kind of thing. Thanks! -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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] add method to class
i've managed to add methods and update the editor, however, i have another question. When adding AST nodes to the tree, it seems i need to work with nodes from the package org.eclipse.php.internal.ast.nodes. However, when traversing the tree based on an ISourceModule, the PHPAstVisitor works with nodes from the package org.eclipse.php.internal.core.compiler.ast.nodes. So when i search for a method using the PHPAstVisitor, i'm handling PHPMethodDeclarations, but when i need to add a method to a class, i'm handling org.eclipse.php.internal.ast.nodes.MethodDeclarations. Is there a way to use a single method class for both search and manipulation of the AST ? regards -robert 2009/7/6 Robert Gründler > Thanks a lot! > > > > Am 06.07.2009 um 07:27 schrieb "Roy Ganor" : > > Hi Robert, > > You can find full documentation for AST manipulation here: > <http://www.eclipse.org/pdt/articles/ast/PHP_AST.html> > http://www.eclipse.org/pdt/articles/ast/PHP_AST.html > > take a look at our unit tests to see what is the right way for doing this > for the different types of elements - <http://bit.ly/Bnl9q> > http://bit.ly/Bnl9q. > > > > Regards, > > Roy > > *From:* pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] *On > Behalf Of *Robert Gruendler > *Sent:* Sunday, July 05, 2009 11:25 PM > *To:* PDT Developers > *Subject:* [pdt-dev] add method to class > > > > Hi all, > > could someone give me a hint how i can add a method to a class and make it > visible in the editor ? > > So far, i've tried the following: > > sourceModule.becomeWorkingCopy(null, null); > classDeclaration.getBody.addStatement(myNewMethod); //classDeclaration is > child of the sourcemodule > sourceModule.reconcile(true, null, null); > sourceModule.commitWorkingCopy(true, null); > > Do i need to alter the IBuffer of the sourcemodule manually for this to > work ? > > > thanks ! > > > -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
[pdt-dev] add method to class
Hi all, could someone give me a hint how i can add a method to a class and make it visible in the editor ? So far, i've tried the following: sourceModule.becomeWorkingCopy(null, null); classDeclaration.getBody.addStatement(myNewMethod); //classDeclaration is child of the sourcemodule sourceModule.reconcile(true, null, null); sourceModule.commitWorkingCopy(true, null); Do i need to alter the IBuffer of the sourcemodule manually for this to work ? thanks ! -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Handling of user libraries
i've just tried the setup on a windows machine, but got the same result. When adding the library to the build path, i get the resources of the library passed to our builder, but when i add it to the include path, i only get the project's internal resources, nothing from the external library. here's how i add the extension: is there anything i'm missing out here ? thanks ! -robert On Sun, Jun 21, 2009 at 8:55 PM, Michael Spector wrote: > Build Path is used for building the structured DLTK model. Include Path is > an emulation of php.ini include_path entry, and it's used for resolving file > network through include() statements when browsing, debugging, etc... It's > obvious that Include Path is a subset of Build Path. > Regarding the difference in build time... it's interesting, since there > should be no difference. When you add a library to the Include Path it's > automatically added to the Build Path. I'll check this... > > > On Sun, Jun 21, 2009 at 9:44 PM, Robert Gruendler wrote: > >> Hi Michael, >> >> thanks for the tip. >> >> the library resources got passed to our builder after adding it to the >> buildPath, not the include path, which brings up my next question: >> >> I have tried to add our library both ways (manually, without usage of our >> plugin). I noticed that i get code assistance both when i add >> it to the include path and the build path. The only difference was that >> when adding it to the build path, a clean build took at least 10 times >> longer than a clean build with having the library in the include path. >> >> But as i've got code assistance both times, i assume that pdt must have >> been building a model of the library in both cases. >> >> So what exactly is the difference between "Include Path" and "Build Path" >> ? >> >> I guess i need to understand that concept before i can implement the model >> from our library ;) >> >> >> thanks again ! >> >> >> -robert >> >> >> Michael Spector schrieb: >> >>> I guess this should work this way: >>> >>> 1. StandardScriptBuilder, which is also a build participant runs first >>> (always), and builds model elements for every build path entry (verify that >>> your library is a part of the buildpath) >>> >>> 2. Your build participant runs after model for all build path entries is >>> built, so you are able to "see" all PHP elements of a project & its >>> dependencies. >>> >>> >>> On Sun, Jun 21, 2009 at 12:28 PM, Robert Gruendler >> doo...@gmail.com>> wrote: >>> >>>Hi Michael, >>> >>>right now i just added it manually by adding it in the preferences >>>as "User defined Library", then in the >>>properties of the project: PHP Include Path -> Libraries -> Add >>>Library... >>> >>> >>>greetings >>> >>>-robert >>> >>>Michael Spector schrieb: >>> >>>Hi Robert, >>> >>>How do you define your included library? We don't encounter >>>this issue in our build participant. >>> >>>On Sat, Jun 20, 2009 at 10:30 PM, Robert Gruendler >>>mailto:doo...@gmail.com> >>><mailto:doo...@gmail.com <mailto:doo...@gmail.com>>> wrote: >>> >>> Hi all, >>> >>> i'm trying to understand how included libraries are handled >>>from a >>> model point of view in pdt. >>> >>> Basically, we need some information from specific classes >>>inside >>> the user library, but i'm not sure at >>> which point we can hook into pdt to build our model. I've >>>tried to >>> add a buildparticipant extension which >>> uses a class that extends PHPAstVisitor. >>> >>> This works fine for all classes/methods etc inside the project, >>> but i don't get anything from the included library. >>> >>> I assume the php model for the external libraries does not get >>> built during the regular build process. >>> >>> Could anyone give me a hint at which point of the pdt plugin >>> lifecycle the external libraries get parsed to build >&g
Re: [pdt-dev] Handling of user libraries
Hi Michael, thanks for the tip. the library resources got passed to our builder after adding it to the buildPath, not the include path, which brings up my next question: I have tried to add our library both ways (manually, without usage of our plugin). I noticed that i get code assistance both when i add it to the include path and the build path. The only difference was that when adding it to the build path, a clean build took at least 10 times longer than a clean build with having the library in the include path. But as i've got code assistance both times, i assume that pdt must have been building a model of the library in both cases. So what exactly is the difference between "Include Path" and "Build Path" ? I guess i need to understand that concept before i can implement the model from our library ;) thanks again ! -robert Michael Spector schrieb: I guess this should work this way: 1. StandardScriptBuilder, which is also a build participant runs first (always), and builds model elements for every build path entry (verify that your library is a part of the buildpath) 2. Your build participant runs after model for all build path entries is built, so you are able to "see" all PHP elements of a project & its dependencies. On Sun, Jun 21, 2009 at 12:28 PM, Robert Gruendler <mailto:doo...@gmail.com>> wrote: Hi Michael, right now i just added it manually by adding it in the preferences as "User defined Library", then in the properties of the project: PHP Include Path -> Libraries -> Add Library... greetings -robert Michael Spector schrieb: Hi Robert, How do you define your included library? We don't encounter this issue in our build participant. On Sat, Jun 20, 2009 at 10:30 PM, Robert Gruendler mailto:doo...@gmail.com> <mailto:doo...@gmail.com <mailto:doo...@gmail.com>>> wrote: Hi all, i'm trying to understand how included libraries are handled from a model point of view in pdt. Basically, we need some information from specific classes inside the user library, but i'm not sure at which point we can hook into pdt to build our model. I've tried to add a buildparticipant extension which uses a class that extends PHPAstVisitor. This works fine for all classes/methods etc inside the project, but i don't get anything from the included library. I assume the php model for the external libraries does not get built during the regular build process. Could anyone give me a hint at which point of the pdt plugin lifecycle the external libraries get parsed to build the model for them ? thanks! -robert ___ pdt-dev mailing list pdt-dev@eclipse.org <mailto:pdt-dev@eclipse.org> <mailto:pdt-dev@eclipse.org <mailto:pdt-dev@eclipse.org>> https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org <mailto:pdt-dev@eclipse.org> https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org <mailto: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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Handling of user libraries
Hi Michael, right now i just added it manually by adding it in the preferences as "User defined Library", then in the properties of the project: PHP Include Path -> Libraries -> Add Library... greetings -robert Michael Spector schrieb: Hi Robert, How do you define your included library? We don't encounter this issue in our build participant. On Sat, Jun 20, 2009 at 10:30 PM, Robert Gruendler <mailto:doo...@gmail.com>> wrote: Hi all, i'm trying to understand how included libraries are handled from a model point of view in pdt. Basically, we need some information from specific classes inside the user library, but i'm not sure at which point we can hook into pdt to build our model. I've tried to add a buildparticipant extension which uses a class that extends PHPAstVisitor. This works fine for all classes/methods etc inside the project, but i don't get anything from the included library. I assume the php model for the external libraries does not get built during the regular build process. Could anyone give me a hint at which point of the pdt plugin lifecycle the external libraries get parsed to build the model for them ? thanks! -robert ___ pdt-dev mailing list pdt-dev@eclipse.org <mailto: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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Handling of user libraries
Hi all, i'm trying to understand how included libraries are handled from a model point of view in pdt. Basically, we need some information from specific classes inside the user library, but i'm not sure at which point we can hook into pdt to build our model. I've tried to add a buildparticipant extension which uses a class that extends PHPAstVisitor. This works fine for all classes/methods etc inside the project, but i don't get anything from the included library. I assume the php model for the external libraries does not get built during the regular build process. Could anyone give me a hint at which point of the pdt plugin lifecycle the external libraries get parsed to build the model for them ? thanks! -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Usage of SearchEngine.createSuperHierarchyScope()
i was trying to get all subclasses of a specific class inside a framework (external user library ) to build our model. I could also iterate over all files/folders inside a folder in the framework that holds the classes i need, but i thought as the php model has already indexed the external library too, i could just use the php search facilities. On Fri, Jun 19, 2009 at 6:08 PM, Roy Ganor wrote: > if you are looking for a specific type hierarchy I recommend using: > org.eclipse.dltk.core.IType.newSupertypeHierarchy(ISourceModule[], > IProgressMonitor) > > can you tell me the context of your request? > Roy > -Original Message- > From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] > On Behalf Of Robert Gruendler > Sent: Friday, June 19, 2009 5:33 PM > To: PDT Developers > Subject: [pdt-dev] Usage of SearchEngine.createSuperHierarchyScope() > > Hi all, > > i'm trying to search for all classes being or extending a specific class > > inside a user defined library. > > Right now, this approach doesn't return any results: > > IDLTKSearchScope projectScope = > PHPModelUtils.createProjectSearchScope(scriptProject); > IType[] types = PHPModelUtils.getTypes("baseClass", projectScope); > > IDLTKSearchScope taskScope = > SearchEngine.createSuperHierarchyScope(type); > IType[] classes = PHPModelUtils.getAllClasses(taskScope); > > > > Is there any recommended way to search for a class hierarchy ? > > > thanks ! > > -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 > ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Usage of SearchEngine.createSuperHierarchyScope()
Hi all, i'm trying to search for all classes being or extending a specific class inside a user defined library. Right now, this approach doesn't return any results: IDLTKSearchScope projectScope = PHPModelUtils.createProjectSearchScope(scriptProject); IType[] types = PHPModelUtils.getTypes("baseClass", projectScope); IDLTKSearchScope taskScope = SearchEngine.createSuperHierarchyScope(type); IType[] classes = PHPModelUtils.getAllClasses(taskScope); Is there any recommended way to search for a class hierarchy ? thanks ! -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [Dltk-dev] Re: [pdt-dev] Use of PHPMixinModel
Hi Roy, thanks for the hint. We intend to implement a global preference page for the php framework, where the user can add different versions of the framework, and set one of them as the default. Pretty much like the "Installed JREs" mechanism for java. So each project has a preference page where the default framework version is selected, but can be overridden by selecting a different one from the global list. Anyway, i tried the tip you posted, but neither the buildpathContainerInitializer nor the buildPathContainerPage ever gets created. So far our nature simply implemented IProjectNature, so i tried to extend ScriptNature instead, which didn't make any difference. Any hint what i'm missing out here ? thanks ! -robert Roy Ganor schrieb: You should also add an extension to buildpathContainerPage, so users will be able to add it through the Project properties -> Buildpath -> Libraries: class="org.eclipse.php.myframework.MyFrameworkContainerInitializer" id=" org.eclipse.php.myframework.CONTAINER"> Roy -Original Message- From: dltk-dev-boun...@eclipse.org [mailto:dltk-dev-boun...@eclipse.org] On Behalf Of Robert Gruendler Sent: Saturday, June 13, 2009 3:33 PM To: Michael Spector Cc: DLTK Developer Discussions; PDT Developers Subject: [Dltk-dev] Re: [pdt-dev] Use of PHPMixinModel You should implement your library initializer just like PHP Language library is initialized: point="org.eclipse.dltk.core.buildpathContainerInitializer"> class="org.eclipse.php.internal.core.language.LanguageModelInitializer" id="org.eclipse.php.core.LANGUAGE"> I've tried this, but our Initializer never gets created. Does our ProjectNature need to extend ScriptNature for this to work ? The extension point looks like this right now: class="net.sourceforge.sfdt.core.SfBuildpathContainerInitializer" id="net.sourceforge.sfdt.core.SYMFONY"> The implementation looks similar to LanguageModelInitializer of PDT. thanks, -robert 2. Basically, in our model specific functions of specific classes can have one or more ISourceModules as child elements, based on the mvc architecture of the framework. Is it possible to contribute those ISourceModules as child nodes to php methods of the pdt model, ie those children would be visible in the outline of that class mehod ? I'm not sure that you can create an ISourceModule as a child element of IMethod using Source Element Requestor. BTW, there is new extension point in DLTK called "model", which is intended for using in order to provide custom model elements to DLTK structured model. But we never used it - it's too new :) I'm CC'ing DLTK developers list, may be they can shed some light on this question. I have found this wiki entry http://wiki.eclipse.org/API_Document_for_Extension_Points_PDT_2.0#PHP_So urce_Element_Requestor. Is this the intended way of achieving what i described in the 2nd question ? thanks for your help ! -robert Michael Spector schrieb: Hi Robert, We are planning to remove any usage of PHPMixinModel. We should move to DLTK indexing mechanism instead, once it's improved. For now, only global variables, global constants and include statements are indexed using PHPMixinModel. If you need to find some model element, please use one of the following utilities: PHPModelUtils PHPTypeInferenceUtils Thanks, Michael On Fri, Jun 12, 2009 at 8:52 PM, Robert Gruendler mailto:doo...@gmail.com> <mailto:doo...@gmail.com <mailto:doo...@gmail.com>>> wrote: Hi all, i'm member of a sourceforge team which is working on an eclipse plugin for the symfony php framework. Currently i'm trying to dig into the pdt code to get some basic understanding of how the pdt php-model works. As far as i've understood, we can use the PHPMixinModel class to search for elements in the workspace PHP-Model. So let's say, there's a class "Foo" somewhere inside an pdt project, should we be able to retrieve an instance of IMixinElement when searching the model with the following code: PHPMixinModel.getWorkspaceInstance().getRawModel().get("Foo"); This call would query the model cache and return all elements that match to the key "Foo", if i understood it right. For some reason however, i ne
Re: [pdt-dev] Use of PHPMixinModel
You should implement your library initializer just like PHP Language library is initialized: I've tried this, but our Initializer never gets created. Does our ProjectNature need to extend ScriptNature for this to work ? The extension point looks like this right now: class="net.sourceforge.sfdt.core.SfBuildpathContainerInitializer" id="net.sourceforge.sfdt.core.SYMFONY"> The implementation looks similar to LanguageModelInitializer of PDT. thanks, -robert 2. Basically, in our model specific functions of specific classes can have one or more ISourceModules as child elements, based on the mvc architecture of the framework. Is it possible to contribute those ISourceModules as child nodes to php methods of the pdt model, ie those children would be visible in the outline of that class mehod ? I'm not sure that you can create an ISourceModule as a child element of IMethod using Source Element Requestor. BTW, there is new extension point in DLTK called "model", which is intended for using in order to provide custom model elements to DLTK structured model. But we never used it - it's too new :) I'm CC'ing DLTK developers list, may be they can shed some light on this question. I have found this wiki entry http://wiki.eclipse.org/API_Document_for_Extension_Points_PDT_2.0#PHP_Source_Element_Requestor. Is this the intended way of achieving what i described in the 2nd question ? thanks for your help ! -robert Michael Spector schrieb: Hi Robert, We are planning to remove any usage of PHPMixinModel. We should move to DLTK indexing mechanism instead, once it's improved. For now, only global variables, global constants and include statements are indexed using PHPMixinModel. If you need to find some model element, please use one of the following utilities: PHPModelUtils PHPTypeInferenceUtils Thanks, Michael On Fri, Jun 12, 2009 at 8:52 PM, Robert Gruendler mailto:doo...@gmail.com> <mailto:doo...@gmail.com <mailto:doo...@gmail.com>>> wrote: Hi all, i'm member of a sourceforge team which is working on an eclipse plugin for the symfony php framework. Currently i'm trying to dig into the pdt code to get some basic understanding of how the pdt php-model works. As far as i've understood, we can use the PHPMixinModel class to search for elements in the workspace PHP-Model. So let's say, there's a class "Foo" somewhere inside an pdt project, should we be able to retrieve an instance of IMixinElement when searching the model with the following code: PHPMixinModel.getWorkspaceInstance().getRawModel().get("Foo"); This call would query the model cache and return all elements that match to the key "Foo", if i understood it right. For some reason however, i never get any elements back, no matter what i'm searching, also tried find() instead of get() btw. Do we need to add some PHP extension point to our plugin to make use of the MixinModel ? Any hints would be greatly appreciated, thanks ! -robert ps: Is there any API documentation available somewhere for either PDT of DLTK ? ___ pdt-dev mailing list pdt-dev@eclipse.org <mailto:pdt-dev@eclipse.org> <mailto:pdt-dev@eclipse.org <mailto:pdt-dev@eclipse.org>> https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org <mailto:pdt-dev@eclipse.org> https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org <mailto: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
Re: [pdt-dev] Use of PHPMixinModel
Hi Michael, thanks for the info. I have a couple of other questions though: 1. We have framework libraries assignend to each project, which we would like to add to the pdt BuildPath of the project. Is BuildPathUtils.addEntriesToBuildPath() the preferred way to do this ? If so, at which point in the plugin life-cycle should this happen ? 2. Basically, in our model specific functions of specific classes can have one or more ISourceModules as child elements, based on the mvc architecture of the framework. Is it possible to contribute those ISourceModules as child nodes to php methods of the pdt model, ie those children would be visible in the outline of that class mehod ? I have found this wiki entry http://wiki.eclipse.org/API_Document_for_Extension_Points_PDT_2.0#PHP_Source_Element_Requestor. Is this the intended way of achieving what i described in the 2nd question ? thanks for your help ! -robert Michael Spector schrieb: Hi Robert, We are planning to remove any usage of PHPMixinModel. We should move to DLTK indexing mechanism instead, once it's improved. For now, only global variables, global constants and include statements are indexed using PHPMixinModel. If you need to find some model element, please use one of the following utilities: PHPModelUtils PHPTypeInferenceUtils Thanks, Michael On Fri, Jun 12, 2009 at 8:52 PM, Robert Gruendler <mailto:doo...@gmail.com>> wrote: Hi all, i'm member of a sourceforge team which is working on an eclipse plugin for the symfony php framework. Currently i'm trying to dig into the pdt code to get some basic understanding of how the pdt php-model works. As far as i've understood, we can use the PHPMixinModel class to search for elements in the workspace PHP-Model. So let's say, there's a class "Foo" somewhere inside an pdt project, should we be able to retrieve an instance of IMixinElement when searching the model with the following code: PHPMixinModel.getWorkspaceInstance().getRawModel().get("Foo"); This call would query the model cache and return all elements that match to the key "Foo", if i understood it right. For some reason however, i never get any elements back, no matter what i'm searching, also tried find() instead of get() btw. Do we need to add some PHP extension point to our plugin to make use of the MixinModel ? Any hints would be greatly appreciated, thanks ! -robert ps: Is there any API documentation available somewhere for either PDT of DLTK ? ___ pdt-dev mailing list pdt-dev@eclipse.org <mailto: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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Use of PHPMixinModel
Hi all, i'm member of a sourceforge team which is working on an eclipse plugin for the symfony php framework. Currently i'm trying to dig into the pdt code to get some basic understanding of how the pdt php-model works. As far as i've understood, we can use the PHPMixinModel class to search for elements in the workspace PHP-Model. So let's say, there's a class "Foo" somewhere inside an pdt project, should we be able to retrieve an instance of IMixinElement when searching the model with the following code: PHPMixinModel.getWorkspaceInstance().getRawModel().get("Foo"); This call would query the model cache and return all elements that match to the key "Foo", if i understood it right. For some reason however, i never get any elements back, no matter what i'm searching, also tried find() instead of get() btw. Do we need to add some PHP extension point to our plugin to make use of the MixinModel ? Any hints would be greatly appreciated, thanks ! -robert ps: Is there any API documentation available somewhere for either PDT of DLTK ? ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] "Cannot nest" error when adding org.eclipse.php.core to dependencies
thanks for the info. Should have searched the bugtracker first, thought it was some kind of setup problem. best -robert Michael Spector schrieb: Hi! This is existing bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=279757 We are working on fixing this issue. Thanks! On Thu, Jun 11, 2009 at 4:23 PM, Robert Gruendler <mailto:doo...@gmail.com>> wrote: Hi all, when adding the php dependency org.eclipse.php.core to our plugin, i get the following error: Cannot nest '/Applications/galileo/plugins/org.eclipse.php.core_2.1.0.v20090610-1903/Resources/parserTools/javacup/bin' inside library '/Applications/galileo/plugins/org.eclipse.php.core_2.1.0.v20090610-1903' I've had a look into the build path of the project, and there is an entry called "bin - /Applications/galileo/plugins/org.eclipse.php.core_2.1.0.v20090610-1903/Resources/parserTools/javacup - additionally to the org.eclipse.php.core jar. Does anyone know what could cause this ? thanks ! -robert ___ pdt-dev mailing list pdt-dev@eclipse.org <mailto: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 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] "Cannot nest" error when adding org.eclipse.php.core to dependencies
Hi all, when adding the php dependency org.eclipse.php.core to our plugin, i get the following error: Cannot nest '/Applications/galileo/plugins/org.eclipse.php.core_2.1.0.v20090610-1903/Resources/parserTools/javacup/bin' inside library '/Applications/galileo/plugins/org.eclipse.php.core_2.1.0.v20090610-1903' I've had a look into the build path of the project, and there is an entry called "bin - /Applications/galileo/plugins/org.eclipse.php.core_2.1.0.v20090610-1903/Resources/parserTools/javacup - additionally to the org.eclipse.php.core jar. Does anyone know what could cause this ? thanks ! -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev