Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] Adding Content Assist for external Javascript library

Hi Julian,

If you created a library and added it to the build path of your project then content assist will just start working. You do not have to do anything special to trigger the content assist.

At minimum you should be implementing the following extension point - org.eclipse.wst.jsdt.core.JsGlobalScopeContainerInitializer

Then you either need to create the UI to allow a user to manually add the new library to their project(org.eclipse.wst.jsdt.ui.JsGlobalScopeContainerPage and org.eclipse.wst.jsdt.ui.JsGlobalScopeUIInitializer) or you could write code to programmatically add the library based on your user scenario(IJavaScriptProject.setRawIncludePath).

Thanks,
Chris


Inactive hide details for Julián Suárez <juliansuarezlopera@xxxxxxxxx>Julián Suárez <juliansuarezlopera@xxxxxxxxx>


          Julián Suárez <juliansuarezlopera@xxxxxxxxx>
          Sent by: wtp-dev-bounces@xxxxxxxxxxx

          07/08/2009 11:06 AM

          Please respond to
          "General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx>

To

"General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx>

cc


Subject

Re: [wtp-dev] Adding Content Assist for external _javascript_ library

Hi Chris I took a look at what you pointed me, and it was exactly what I was looking for. Thank you!

I've managed to create a _javascript_ file similar to the one in the firefox plugin.

But it is still unclear to me how to make it available to code assist, without directly including the js file.

I don't understand very well the way the firefox plugin does this....


could you point me to some documentation about this problems?

thank you very much for your help!

julian



On Tue, Jul 7, 2009 at 3:37 PM, Christopher Jaun <cmjaun@xxxxxxxxxx> wrote:
    Hi Julian,

    If you have a _javascript_ file or files that you would like to make available as a library take a look at the org.eclipse.wst.jsdt.support.firefox plugin.

    This plugin adds a firefox specific library, using JSDT extensions, to a project and makes its fields/functions available in content assist. It has all the code in there to create a new library container and make it available in the project wizard or in the project properties page.

    Let me know if that handles your scenario.

    Thanks,
    Chris


    Inactive hide details for Julián Suárez <juliansuarezlopera@xxxxxxxxx>Julián Suárez <juliansuarezlopera@xxxxxxxxx>



Please respond to
"General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx>
To

wtp-dev@xxxxxxxxxxx
cc
Subject

[wtp-dev] Adding Content Assist for external _javascript_ library
_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev

GIF image

GIF image

GIF image


Back to the top