一直以来绝大多数人都为AJAX开发中的JS的开发和调试而烦恼,
而Aptana可以解决这些问题,让调试与编写JS,开发AJAX变得轻松。提供了基于firefox的测试与调试环境,语法着色自动补全,语法提示,错误提示,更让人感觉不错的一个功能是他同时提供了多种浏览器的检查功能,确实比较强大!
效果图:
[img]/upload/attachment/101570/aaccec40-72c2-3f21-8e7e-a33c9bfaf31e.gif[/img]
方法1:手动安装
1.下载安装包:Aptana update,解压至Aptana 文件夹
2.在 Eclipse 的 Help 菜单中,选择 Software Updates->Find and Install...,这会打开 Install/Update 弹出窗口。
3.在 Install/Update 弹出窗口中,选择 Search for new features to install 选项并单击 Next。
4.单击 New Local Site... 按钮,选择刚才解压出来的Aptana 文件夹
5.单击 Finish 打开 Updates 窗口。 在 Updates 窗口中,选择 Aptana update 复选框并单击 Next。
接受许可协议的条款并单击 Next。
6.这样就安装好了。重启Eclipse.选择 Window->Open Perspective->Other,选择 Aptana 并单击 OK。如果出现 Aptana 透视图,就说明安装已经完成了。
方法2:在线安装
在 Eclipse 的 Help 菜单中,选择 Software Updates->Find and Install...,这会打开 Install/Update 弹出窗口。
在 Install/Update 弹出窗口中,选择 Search for new features to install 选项并单击 Next。
为了设置新的远程更新站点,单击 New Remote Site... 按钮,这会打开 New Update Site 弹出窗口。
在 New Update Site 弹出窗口中,在 Site Name 文本框中输入 Aptana。
在 URL 文本框中,输入 Aptana 更新站点的 URL:http://update.aptana.com/install/3.2/ 并单击 OK。
单击 Finish 打开 Updates 窗口。
在 Updates 窗口中,选择 Aptana update 复选框并单击 Next。
接受许可协议的条款并单击 Next。
单击 Finish。
如果出现 Feature Verification 对话框,那么选择 Install All。
如果提示您重新启动 Eclipse,单击 Yes 进行重新启动。
下面说下Aptana的破解,
找到\eclipse\plugins\com.aptana.ide.core_1.2.1.020137.jar这个文件,因为版本号可能不同,只有找到com.aptana.ide.core_开头的就可以了,复制出来,解压出来
找到com\aptana\ide\core\licensing下的ClientKey.class,这个文件就是管理客户端KEY的字节码文件
将下面的代码保存为ClientKey.java:
编译后生成新的ClientKey.class,将它替换掉com.aptana.ide.core_1.2.1.020137.jar\com\aptana\ide\core\licensing下的ClientKey.class即可,然后将com.aptana.ide.core_1.2.1.020137.jar覆盖\eclipse\plugins\下的那个,这样就可以了。
而Aptana可以解决这些问题,让调试与编写JS,开发AJAX变得轻松。提供了基于firefox的测试与调试环境,语法着色自动补全,语法提示,错误提示,更让人感觉不错的一个功能是他同时提供了多种浏览器的检查功能,确实比较强大!
效果图:
[img]/upload/attachment/101570/aaccec40-72c2-3f21-8e7e-a33c9bfaf31e.gif[/img]
方法1:手动安装
1.下载安装包:Aptana update,解压至Aptana 文件夹
2.在 Eclipse 的 Help 菜单中,选择 Software Updates->Find and Install...,这会打开 Install/Update 弹出窗口。
3.在 Install/Update 弹出窗口中,选择 Search for new features to install 选项并单击 Next。
4.单击 New Local Site... 按钮,选择刚才解压出来的Aptana 文件夹
5.单击 Finish 打开 Updates 窗口。 在 Updates 窗口中,选择 Aptana update 复选框并单击 Next。
接受许可协议的条款并单击 Next。
6.这样就安装好了。重启Eclipse.选择 Window->Open Perspective->Other,选择 Aptana 并单击 OK。如果出现 Aptana 透视图,就说明安装已经完成了。
方法2:在线安装
在 Eclipse 的 Help 菜单中,选择 Software Updates->Find and Install...,这会打开 Install/Update 弹出窗口。
在 Install/Update 弹出窗口中,选择 Search for new features to install 选项并单击 Next。
为了设置新的远程更新站点,单击 New Remote Site... 按钮,这会打开 New Update Site 弹出窗口。
在 New Update Site 弹出窗口中,在 Site Name 文本框中输入 Aptana。
在 URL 文本框中,输入 Aptana 更新站点的 URL:http://update.aptana.com/install/3.2/ 并单击 OK。
单击 Finish 打开 Updates 窗口。
在 Updates 窗口中,选择 Aptana update 复选框并单击 Next。
接受许可协议的条款并单击 Next。
单击 Finish。
如果出现 Feature Verification 对话框,那么选择 Install All。
如果提示您重新启动 Eclipse,单击 Yes 进行重新启动。
下面说下Aptana的破解,
找到\eclipse\plugins\com.aptana.ide.core_1.2.1.020137.jar这个文件,因为版本号可能不同,只有找到com.aptana.ide.core_开头的就可以了,复制出来,解压出来
找到com\aptana\ide\core\licensing下的ClientKey.class,这个文件就是管理客户端KEY的字节码文件
将下面的代码保存为ClientKey.java:
package com.aptana.ide.core.licensing;
import java.util.Calendar;
import java.util.TimeZone;
public final class ClientKey
{
public ClientKey(int type, String email, long expiration)
{
this.type = type;
this.email = email;
this.expiration = expiration;
}
public boolean isCloseToExpiring()
{
return false;
}
public boolean isValid()
{
return true;
}
public boolean isCloseToMatching()
{
return false;
}
public boolean isExpired()
{
return false;
}
public String getEmail()
{
return email;
}
public Calendar getExpiration()
{
Calendar expirationCal = Calendar.getInstance();
expirationCal.add(Calendar.YEAR, 50);
return expirationCal;
}
public boolean isTrial()
{
return false;
}
public boolean isPro()
{
return !isTrial();
}
public boolean shouldProPluginsRun()
{
if(isPro())
return true;
else
return !isExpired();
}
public static String trimEncryptedLicense(String encrypted)
{
String newEncrypted = encrypted;
newEncrypted = newEncrypted.trim();
newEncrypted = newEncrypted.replaceAll("--begin-aptana-license--", "");
newEncrypted = newEncrypted.replaceAll("--end-aptana-license--", "");
newEncrypted = newEncrypted.replaceAll("\\s+", "");
return newEncrypted;
}
public static final String BEGIN_LICENSE_MARKER = "--begin-aptana-license--";
public static final String END_LICENSE_MARKER = "--end-aptana-license--";
public static final int PRO = 0;
public static final int TRIAL = 1;
private static final TimeZone GMT = TimeZone.getTimeZone("GMT");
public static final String EMAILS_NON_MATCHING = "EMAILS_NON_MATCHING";
public static final ClientKey EMPTY_KEY = new ClientKey(0, "youemail@163.com", 0L);
private String email;
private long expiration;
private int type;
}
编译后生成新的ClientKey.class,将它替换掉com.aptana.ide.core_1.2.1.020137.jar\com\aptana\ide\core\licensing下的ClientKey.class即可,然后将com.aptana.ide.core_1.2.1.020137.jar覆盖\eclipse\plugins\下的那个,这样就可以了。