How can I get Aptana's code assist to work with Google Maps API v3?
Asked Answered
T

4

36

There's a Google Maps API v3 Visual Studio Intellisense Helper, which presumably works great for Visual Studio, but Aptana (based on Eclipse) uses a different JavaScript documentation format - ScriptDoc (.sdoc files). ScriptDoc is also the name of a VS utility to convert JS files with Intellisense comments into XML, just to confuse things.

I've tried adding the Intellisense files as file / global references in Aptana, but all this gives is completion for the word google and no completion or documentation in the google namespace.

Possible solutions:

  • Find someone who's already done this for Aptana. I've Google'd quite a bit already but couldn't find anything.
  • Convert the Visual Studio Intellisense Helper into a format Aptana can understand.
  • Scrape the API page and convert it into a format Aptana can understand.
Tadzhik answered 23/4, 2010 at 9:33 Comment(1)
Doesn't say how, but here is it working in v2 - youtube.com/watch?v=8IwBS2uO_esViewless
L
1

Can't you put the JS file in the Project's references ?

Lazor answered 13/7, 2010 at 9:8 Comment(1)
I've tried maps.gstatic.com/intl/en_gb/mapfiles/api-3/1/6/main.js (and a few others) but it's not coming back with anything. Even if this worked for code completion (which would be nice), it won't have any of the docs.Tadzhik
S
1

I'm using Aptana and ScriptDoc is the worst decision they made and they seem to be attached to it, it's the main reason I have considered switching to Eclipse. I've been thinking in using jsdoc-toolkit to generate .sdoc files from jsdoc notations (using some type of templates), but to use .sdoc files you must insert @id tags all over your code, and that discouraged me.

Signal answered 20/3, 2011 at 16:37 Comment(1)
Cannot agree more to your comment. swik.net/Eclipse/del.icio.us%2Ftag%2Feclipse/…Nonconformance
F
1

This helper is for Visual Studio. I don't think Aptana can work with vsdoc.js files

Aptana Plugin for Eclipse and jQuery code assist

Fsh answered 26/1, 2012 at 10:10 Comment(0)
C
1

I found this and I'm checking if it helps http://code.google.com/p/closure-compiler/source/browse/#svn%2Ftrunk%2Fcontrib%2Fexterns%2Fmaps

Conoscenti answered 25/5, 2012 at 19:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.