Reputation: 401
I'm using Eclipse as JavaScript IDE.
I would like to setup Xrm.Page library in this environment (for code completion and assistance).
I couldn't find any separate library files and any tools for that, just for Visual Studio. Is there a solution for using it in Eclipse?
Upvotes: 0
Views: 675
Reputation: 7224
\sdk\templates\xrm.pagescriptprojecttemplate
\Scripts\XrmPageTemplate.js
Now you can bring the XrmPageTemplate.js file into Eclipse and develop with code-completion, etc.
UPDATED DEC 02 2013
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. 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:
Resources which are added to the Build Path can theoretically be made available for 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. Eclipse examines the JavaScript Abstract Syntax Tree (AST) in order to generate "virtual" class information. 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.
Some of the makers of popular JS libraries have taken a proactive role in exposing their object model to Eclipse via a plugin.
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
.
Upvotes: 1