简体   繁体   English

Eclipse Javascript插件扩展

[英]Eclipse Javascript Plugin extension

I am new to creating plugins. 我是创建插件的新手。 I want to create an eclipse plugin for a new scripting language. 我想为新的脚本语言创建一个eclipse插件。 And, its syntax is quite similar to JavaScript. 并且,其语法与JavaScript非常相似。 So, I wish to extend existing Javascript plugin that exists in eclipse. 因此,我希望扩展eclipse中现有的Javascript插件。

Please suggest how do I go about it. 请建议我该怎么做。 Mainly, I want to have editor functionality (syntax checking, auto completion and ctrl-click to go to hop across functions), no compiler/build is needed. 主要是,我希望具有编辑器功能(语法检查,自动完成和ctrl单击以跳转到各个功能),不需要编译器/构建。

Also, where do I find the source code for existing JavaScript plugin. 另外,在哪里可以找到现有JavaScript插件的源代码。

The source of the JavaScript editor can be found in the http://download.eclipse.org/webtools/repository/kepler/ repository (assuming Eclipse Kepler). 您可以在http://download.eclipse.org/webtools/repository/kepler/存储库(假定Eclipse Kepler)中找到JavaScript编辑器的源代码。 Look for the JavaScript Development Tools SDK . 寻找JavaScript Development Tools SDK

You install this in to Eclipse using Help > Install New Software and the source is then available to read using Navigate > Open Type (you need to have Include all plug-ins from target in Java search selected in Preferences > Plug-in Development for this). 您可以使用“ Help > Install New Software到Eclipse中,然后可以使用“ Navigate > Open Type读取源(您需要在Preferences > Plug-in Development选择Preferences > Plug-in Development Include all plug-ins from target in Java search Preferences > Plug-in Development 。 )。

Eclipse editor code is very complex and it likely to be hard work to adapt it. Eclipse编辑器代码非常复杂,要适应它可能很困难。 You might find it easier to use something like Eclipse xText which is designed for developing support for new languages. 您可能会发现,使用诸如Eclipse xText之类的东西更容易,该东西旨在开发对新语言的支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM