[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pdt-dev] How to Extending PDT 2.2??


Hi all. I’m new in PDT.


I’m trying to extending PDT 2.2 with languageModelProviders’s extension point.

But, I’m not good at JAVA&Eclipse. :(


I’ve read a API Doc already.. but it’s not help me;;

A Doc link is http://wiki.eclipse.org/Extending_PDT_2.2#Language_library_contributions


Here is a my extending source..

Please, check my source.


It is a successfully exported and installed. But it’s not working.


package co.kr.mk.framework;


import org.eclipse.core.runtime.IPath;

import org.eclipse.core.runtime.Path;

import org.eclipse.core.runtime.Plugin;

import org.eclipse.dltk.core.IScriptProject;

import org.eclipse.php.core.language.ILanguageModelProvider;


public class MKFramework extends Plugin implements ILanguageModelProvider {


      private static MKFramework plugin;


      public MKFramework() {



      public static MKFramework getDefault() {

            if( plugin == null ) {

                  plugin = new MKFramework();


            return plugin;



      public IPath getPath(IScriptProject project) {

            // TODO Auto-generated method stub

            return new Path("resources/mk");



      public String getName() {

            // TODO Auto-generated method stub

            return null;



      public Plugin getPlugin() {

            // TODO Auto-generated method stub

            return MKFramework.getDefault();







A custom php file sttub in resources/mk is..






 * Test function

 * @param string $ppp


function hjkim($ppp) {

      return $ppp;




How to make a code assistance for custom PHP Library Function and Class?


Thanks all.




(주) 매경닷컴 시스템 개발부 김희준 대리 | hjkim@mkinternet.com | @powfly | 02*2000*5443 | 010*6332*9272