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

Hi..

 

Sure. I added a provider tag.

Here is a my plugin.xml.

 

<?xml version="1.0" encoding="UTF-8"?>

<?eclipse version="3.4"?>

<plugin>

ÂÂ <extension

ÂÂÂÂÂÂÂÂ point="org.eclipse.php.core.languageModelProviders">

ÂÂÂÂÂÂÂÂ <provider class="co.kr.mk.MKFramework" />

ÂÂ </extension>

 

</plugin>

 

And, I checked a resource path in build.properties.

 

source.. = src/

output.. = bin/

bin.includes = META-INF/,\

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ .,\

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ plugin.xml,\

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ resources/

 

 

What do am I next?? :(

 

Thanks for your help.

 

 

From: pdt-dev-bounces@xxxxxxxxxxx [mailto:pdt-dev-bounces@xxxxxxxxxxx] On Behalf Of ?å?
Sent: Wednesday, November 10, 2010 2:56 PM
To: PDT Developers
Subject: Re: [pdt-dev] How to Extending PDT 2.2??

 

hi,

did you do this:

Register this class in plugin.xml:

Â<extension point="org.eclipse.php.core.languageModelProviders">
ÂÂ <provider class="
co.kr.mk.framework.MKFramework" />

Â</extension>

 

2010/11/10 êíì <hjkim@xxxxxxxxxxxxxx>

 

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();

      }

     

 

}

 

And..

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

 

<?php

 

/**

 *

 * 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

 


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




--

Thanks!

Best Regards!

Zhao