[英]Dynamics CRM: using Xrm.Page library in Eclipse
I'm using Eclipse as JavaScript IDE. 我正在使用Eclipse作为JavaScript IDE。
I would like to setup Xrm.Page library in this environment (for code completion and assistance). 我想在此环境中设置Xrm.Page库(用于代码完成和帮助)。
I couldn't find any separate library files and any tools for that, just for Visual Studio. 我找不到用于Visual Studio的任何单独的库文件和任何工具。 Is there a solution for using it in Eclipse?
有在Eclipse中使用它的解决方案吗?
\\sdk\\templates\\xrm.pagescriptprojecttemplate
\\sdk\\templates\\xrm.pagescriptprojecttemplate
安装VS扩展 \\Scripts\\XrmPageTemplate.js
\\Scripts\\XrmPageTemplate.js
的新解决方案副本 Now you can bring the XrmPageTemplate.js file into Eclipse and develop with code-completion, etc. 现在,您可以将XrmPageTemplate.js文件引入Eclipse并使用代码完成等进行开发。
UPDATED DEC 02 2013 2013年12月2日更新
After looking at your comments I did some further investigation. 看完您的评论后,我做了进一步的调查。 Eclipse, unlike Visual Studio, does not support code completion from JavaScript source in a reliable manner.
Eclipse与Visual Studio不同,它不以可靠的方式支持来自JavaScript源的代码完成。 In most cases it requires a custom plugin be created to support auto completion.
在大多数情况下,需要创建自定义插件以支持自动完成。
Quoting from Add External JS Libraries to Eclipse JSDT-driven Projects : 引用从将外部JS库添加到Eclipse JSDT驱动的项目中 :
Resources which are added to the Build Path can theoretically be made available for Content Assist.
理论上,可以将添加到构建路径的资源用于Content Assist。 That's an important distinction because ensuring that the file is scanned does not guarantee that it will be correctly converted into a usable object model.
这是一个重要的区别,因为确保扫描文件并不能保证将文件正确转换为可用的对象模型。 That's because, in order for some JDT-based functionality to work correctly, class type information must be inferred in many cases.
这是因为,为了使某些基于JDT的功能正常工作,必须在许多情况下推断类类型信息。 Eclipse examines the JavaScript Abstract Syntax Tree (AST) in order to generate "virtual" class information.
Eclipse检查JavaScript抽象语法树(AST),以生成“虚拟”类信息。 And while the unique conventions of the various JavaScript Toolkits such as Dodo, jQuery, and Prototype can be handled to some extent, at this point it's still provisional.
尽管可以在某种程度上处理各种JavaScript工具包(如Dodo,jQuery和Prototype)的独特约定,但目前仍是临时的。
Some of the makers of popular JS libraries have taken a proactive role in exposing their object model to Eclipse via a plugin.
流行的JS库的一些制造商在通过插件将其对象模型暴露给Eclipse方面发挥了积极作用。
Since the only supported development environment for Dynamics CRM is Visual Studio is not likely to see a custom plugin be released to support Xrm.Page
. 由于Dynamics CRM唯一受支持的开发环境是Visual Studio,因此不太可能看到发布自定义插件来支持
Xrm.Page
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.