代码完成 - Sencha + Aptana Studio 3 [英] Code completion - Sencha + Aptana Studio 3

查看:31
本文介绍了代码完成 - Sencha + Aptana Studio 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Aptana Studio 3 上工作并且已经下载了 Sencha,如下链接建议:http://docs.sencha.com/touch/2.3.1/#!/guide/first_app

I am working on Aptana Studio 3 and have downloaded Sencha as below link would advice: http://docs.sencha.com/touch/2.3.1/#!/guide/first_app

即下载 Sencha(和 XAMPP,将解压缩的 sencha 文件安装到 xampp/htdocs 中名为 touch 的文件夹中).Localhost/touch/examples 显示正常 - 所以它肯定有效

I.e. downloaded Sencha (and XAMPP, installed the unzipped sencha files into a folder called touch inside xampp/htdocs). Localhost/touch/examples show up fine - so it is definitely working

也安装了 Sencha cmd.这将安装 sencha cmd line 工具版本 4.0.x - 我能够使用

Have also installed Sencha cmd. This installs sencha cmd line tool version 4.0.x - and I am able to create a folder NewApp with skeletal sencha project using

sencha generate app NewApp NewApp

内容创建在 xampp/htdocs/touch/NewApp 文件夹内

The content is created inside xampp/htdocs/touch/NewApp folder

奇怪的是,上面链接中的教程说使用命令:sencha -sdk/path/to/touch 生成应用程序 MyApp但是,我没有被指示安装 SDK(我尝试这样做,但安装的 SDK 有 sencha cmd line tool version 2.x.x - 所以我已经卸载了它

Strangely, the tutorial in the link above says to use the command: sencha -sdk /path/to/touch generate app MyApp However, I have not been instructed to install the SDK (I tried doing this, but the SDK installed has the sencha cmd line tool version 2.x.x - so I have uninstalled it

我正在 Aptana Studio 中导入这个 NewApp 文件夹并尝试使用它.如何让代码完成工作?

I am importing this NewApp folder in Aptana Studio and trying to work with this. How do I get code completion working?

我尝试按照以下说明操作:http://www.sencha.com/forum/showthread.php?112540-Aptana-Code-Assist-for-Sencha-Touch

I tried following these instructions : http://www.sencha.com/forum/showthread.php?112540-Aptana-Code-Assist-for-Sencha-Touch

6.在 Aptana Studio 中,转到 Windows -> Preferences -> Spket -> Javascript Profiles- 点击新建"并写入SenchaTouch"- 选择SenchaTouch"并单击添加库"并从显示的列表中选择ExtJs"- 选择ExtJs"并单击添加文件" 找到包含在从 sencha.com 下载的 zip 文件中的sencha-touch.jsb3".(制作确保该存档中的所有文件都位于同一文件夹中)....然后点击打开"

6 . In Aptana Studio go to Windows -> Preferences -> Spket -> Javascript Profiles - Click "New" and write "SenchaTouch" - Select "SenchaTouch" and click "Add Library" and select "ExtJs" from the list displayed - Select "ExtJs" and click "Add File" Locate youre "sencha-touch.jsb3" wich is containted in the zip file downloaded from sencha.com. (make sure all the files from that archive are located in the same folder) ....and click "Open"

但是,我下载的用于安装 Sencha 2.3 的 zip 文件中根本没有 .jsb3 文件

However, I simply do not have a .jsb3 file in the zip file i downloaded from for installing Sencha 2.3

推荐答案

从 2.2.1 开始,sencha touch 库不再有 .jsb3 文件.看到这个_http://tol8.blogspot.de/2013/02/sencha-ext-js-support-in-eclipse-tested.html.

There is no more .jsb3 files for sencha touch library since 2.2.1. See this _http://tol8.blogspot.de/2013/02/sencha-ext-js-support-in-eclipse-tested.html.

使用 spket 插件使自动编译功能在 eclipse 和 sencha touch 2.3.x 上工作.您可以使用 sencha touch 库中的 .js (sencha-touch-all.js) 文件而不是 .jsb3 文件.我找到了这个 blog 并尝试使用 sencha touch 2.3.1 更新.要获得 setter 和 getter 功能,请检查 spket forum.

Use spket plugin to make auto complite function work on eclipse and sencha touch 2.3.x. You can use .js (sencha-touch-all.js) file from sencha touch library working instead of .jsb3 file. I found this blog and tried it with sencha touch 2.3.1 update. To get setter and getter function work check spket forum.

这篇关于代码完成 - Sencha + Aptana Studio 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆