MyEclipse6.5安装Aptana ????
- 提问者网友:听门外雪花风
- 2021-04-25 07:38
- 五星知识达人网友:大漠
- 2021-04-25 08:53
2009-12-21
MyEclipse6.5安装Aptana
文章分类:大众软件
根据网上的帖子整理了一下Aptana的安装,以备以后使用。
1、从官方现在Aptana的Eclipse 插件,我下载的是aptana_update_024747.zip文件,然后解压该文件到任意目录下。我把他放到了我的D:/aptana
地址: http://update.aptana.com/update/studio/3.2/
2、安装
打开MyEclipse选择Help-->software upates-->find and install...
-->search for new features to install然后“next”,然后选择“new local site...”,在打开的对话框中选择你刚才解压的文件夹(我的是D:/aptana),然后点击“ok”,回到"install"对话框,然后点击"finish"。
接下来这步很重要,在接下开弹出的对话框中选择除最后一项"com.aptana.ide.professional_1.2.7.024688_200905101224" 不选外,其他都选。余下的步骤按提示一步步做就行。
安装完后会提示你重启MyEclipse,这样就安装完成了。
3、设置
在Perferences对话框中选择General-->editors-->File Association,将File Types 是*.html、*.htm、*.js、*.css的都设置成Aptana开头的为默认编辑器。
在Perferences对话框中选择Aptana->editors->javascript->code assist ,勾选上jQuery。
aptana破解(我没有验证过)
1、找到\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:
Java代码
1.package com.aptana.ide.core.licensing;
2.
3.import java.util.Calendar;
4.import java.util.TimeZone;
5.
6.public final class ClientKey
7.{
8.
9. public ClientKey(int type, String email, long expiration)
10. {
11. this.type = type;
12. this.email = email;
13. this.expiration = expiration;
14. }
15.
16. public boolean isCloseToExpiring()
17. {
18. return false;
19. }
20.
21. public boolean isValid()
22. {
23. return true;
24. }
25.
26. public boolean isCloseToMatching()
27. {
28. return false;
29. }
30.
31. public boolean isExpired()
32. {
33. return false;
34. }
35.
36. public String getEmail()
37. {
38. return email;
39. }
40.
41. public Calendar getExpiration()
42. {
43. Calendar expirationCal = Calendar.getInstance();
44. expirationCal.add(Calendar.YEAR, 50);
45. return expirationCal;
46. }
47.
48. public boolean isTrial()
49. {
50. return false;
51. }
52.
53. public boolean isPro()
54. {
55. return !isTrial();
56. }
57.
58. public boolean shouldProPluginsRun()
59. {
60. if(isPro())
61. return true;
62. else
63. return !isExpired();
64. }
65.
66. public static String trimEncryptedLicense(String encrypted)
67. {
68. String newEncrypted = encrypted;
69. newEncrypted = newEncrypted.trim();
70. newEncrypted = newEncrypted.replaceAll("--begin-aptana-license--", "");
71. newEncrypted = newEncrypted.replaceAll("--end-aptana-license--", "");
72. newEncrypted = newEncrypted.replaceAll("\\s+", "");
73. return newEncrypted;
74. }
75.
76. public static final String BEGIN_LICENSE_MARKER = "--begin-aptana-license--";
77. public static final String END_LICENSE_MARKER = "--end-aptana-license--";
78. public static final int PRO = 0;
79. public static final int TRIAL = 1;
80. private static final TimeZone GMT = TimeZone.getTimeZone("GMT");
81. public static final String EMAILS_NON_MATCHING = "EMAILS_NON_MATCHING";
82. public static final ClientKey EMPTY_KEY = new ClientKey(0, "youemail@163.com", 0L);
83. private String email;
84. private long expiration;
85. private int type;
86.
87.}
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\下的那个,这样就可以了。