Eclipse rcp 开发 : 集成aptana

aptana 3.0  update site :http://download.aptana.com/studio3/plugin/install  我使用的安装环境是eclipse luna 4.4.2  64位

如果是全部集成,只需要在product 里面添加所有的aptana的jar 即可。在此说明一下,aptana 和eclipse 里面有2个Jar 冲突。httpclient 和 httpcore 。aptana使用的是4.2 ,而eclipse 里面添加是其它版本。如果要是自动添加,并不会增加aptana默认的4.2的版本。

如果使用的eclipse没有别的开发用途的话,建议,直接从Plugins 文件夹里面删除掉多余的jar 。即可解决上述问题。

1. 我本地使用的只需要 html,css,js,xml 这4个编辑器。在product 里面,选择"Add" 添加 com.aptana.editor.xml  , com.aptana.editor.css, com.aptana.editor.html ,com.aptana.editor.js .这4个Jar 。选择“Add Required Plug-ins”,会自动添加其余的Jar。

2. 添加完成后,提示,样式等并没有增加完成,继续增加。com.aptana.editor.haml 和 com.aptana.terminal  再次点击“Add Required Plug-ins”。直接启动即可。

3.在开发过程中,发现编辑器无法绑定。强制绑定编辑器

      //默认编辑器
private String jsExtension ="*.js";
private String htmlExtension ="*.html";
private String cssExtension ="*.css";
private String jsonExtension ="*.json";
private String xmlExtension ="*.xml";
private String jsEditorId = "com.aptana.editor.js";
private String htmlEditorId = "com.aptana.editor.html";
private String cssEditorId = "com.aptana.editor.css";
private String jsonEditorId = "com.aptana.editor.json";
private String xmlEditorId = "com.aptana.editor.xml";   
         //初始化编辑器,强制改变默认编辑类型
     editorRegistry.setDefaultEditor(jsExtension, jsEditorId);
     editorRegistry.setDefaultEditor(htmlExtension, htmlEditorId);
     editorRegistry.setDefaultEditor(cssExtension, cssEditorId);
     editorRegistry.setDefaultEditor(jsonExtension, jsonEditorId);
     editorRegistry.setDefaultEditor(xmlExtension, xmlEditorId);



你可能感兴趣的:(Eclipse rcp 开发 : 集成aptana)