Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pdt-dev] Help extending PDT

Hello,

I have a (relatively) short tutorial on how to setup project and customize code completion in PDT. Unfortunately it is written for PDT 2.2 and probably wouldn't work for 3.x. However take a look on it: https://sites.google.com/site/50percentplan/eclipse

--
Victor Kupriyanov


2013/4/28 Antoine Delamarre <antoine.delamarre@xxxxxxxxxxxxxxx>
Hi,

I want to add extension to the PDT.
My goal is to achieve code assist in the ZF2 configuration array declaration.
I try to create a simple test as explained in this document : http://wiki.eclipse.org/Extending_PDT
but i have some problems with the imported package i need to declare.

I have installed the PHP Development Tool (PDT) and PHP Development Tool (PDT) SDK Feature.
I have used the wizard to create a plug-in project.
I try to extends the org.eclipse.php.core.completionContextResolvers and the org.eclipse.php.core.completionStrategyFactories

First the 

import org.eclipse.php.internal.core.codeassist.contexts.CompletionContextResolver 

give me the following error : 

Discouraged access: The type CompletionContextResolver is not accessible due to restriction on required library /Applications/eclipse/plugins/org.eclipse.php.core_3.1.1.201209101312.jar

As i can see the import rules are set by default to "Discouraged" and "Forbidden".

Is this normal ? Where is my mistake ?

Another problem is that the eclipse ide do not find where is declared the "ICompletionContextResolver" and some others interfaces. 

Could you give me a whole sample project that extend the PDT to let me see how everithing work ? 

Thanks for your help.

Bests regards

Antoine Delamarre

_______________________________________________
pdt-dev mailing list
pdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pdt-dev



Back to the top