Customizing the Eclipse IDE Plug-in chapter (II)

Source: Internet
Author: User

Review above: Customizing the Eclipse IDE Plug-in chapter (i)

Continuation of the previous plug-in, this article will talk about a most critical plugin Aptana.

First, Aptana plug-inThe official explanation I will not say, from the figure below you can see what the plugin provides, listing some of what I think is important. 1. Contnet Assist: Code hint 2. Editors:5 type File Editor 3. Themes: Theme 4. Validation: Code validation provides these capabilities to hit my eclipse front-end development of the key, I decided to use, and here are some of the adjustments I made to Aptana. 1. Download the Aptana pluginGet it from GitHub (i downloaded a V4.0.0 version). : Https://github.com/aptana/studio3/tree/master 2. Import ProjectI directly import all the works in plugins, 90 projects (scared I almost sat on the ground). 3. Correction WorksAfter importing all the projects, it was found that several projects were wrong. It may be that these projects cite Eclipse's unknown package, so I have deleted some of these projects and some have fixed them. Example: schema://org.eclipse.core.expressions/schema/expressionlanguage.exsd

There are two projects that cannot find this file, which I think is used for El expressions, so it can be deleted.

4. Delete Aptana's welcome page, menu barDelete Welcome page: Delete Com.aptana.portal.ui/plugin.xml
< extension       Point = "Org.eclipse.ui.startup" >  < Startup           class = "Com.aptana.portal.ui.internal.startpage.StartPageStartup" >  </ Startup > </ extension >
Remove the menu bar: Delete Com.aptana.workbench/plugin.xml's org.eclipse.ui.menus expansion point 5. Add a Theme fileAccording to the theme project under the themes inside the file, your own theme files are put here on the line. 6. Modify the new file templateAptana Right-click New file template is very useful, I made some small tweaks so that he can support my framework file template. Specifically how should not say, code in this project: 7. Modify the Catalog Import WizardSo far, there is not a wizard to import their own framework project, I found a good wizard in Aptana, is the Directory Import Wizard, made some minor adjustments (the following configuration was deleted by me). Note that these two files can be modified: Com.aptana.projects/src/com/aptana/projects/internal/wizards/promotetoprojectwizard.java Com.aptana.ui.epl/src/com/aptana/ui/wizards/wizardfolderimportpage.java 8. Turn off all the checksTurn off JS, CSS, HTML file check, in order to improve the process of editing.
Just use the Preferenceinitializer in each editor, comment out the Check property set on the line. 9. Close the JS code prompt, the content is extremely incorrectTo Aptana, I only want to vomit groove is the code hint to JS, the content of the hint is extremely not allowed, really can not endure, so I put its code hints off. In file: Com.aptana.editor.js/src/com/aptana/editor/js/jssourceconfiguration.java commented out: jscontentassistprocessor Aptana Summary:Aptana's plug-in is very rich, and I modified the adjustment, more than 80 projects (I cut), it is impossible to see one by one, can only use the most stupid way, is to use the keyword to find documents, find the project. second, less, sass plug-inIn the Aptana plugin, I found that the lack of support for less, sass, simply said that the two file types are missing the editor. And I found the relevant Aptana plugin (different version) on the Internet, so I have to add him back to Com.aptana.editor.sass. But engineering some errors, code hints part of the error, helpless under I can only delete (I do not have time to repair him), only left the editor part, also can be used. I will publish my revised project,: Http://files.cnblogs.com/files/lovesong/com.aptana.editor.sass.zip other Less, sass the compilation of tools to solve it yourself, for example Less with koala (quite handy). third, Spket plug-inI add this plugin is to complement the Aptana JS code hint problem. This plugin is also for the JavaScript code hint, because the framework has a JS engine, plus code hints that the IDE is complete. 1. Download the plugin. : http://www.spket.com/download.html 2. After eclipse, JavaScript profiles is the most critical. 3. The JS library file of the frame is introduced here, there is code hint in JS file. 4. Otherwise, do you remember what I said earlier, can you set things, do not let the user to set. So I also built the framework library into Spket. For the reasons of space, I wrote him in another article. Eclipse Spket built-in JS file plugin is here, then the chapter will say some plug-in development problems. This article for the original article, reproduced please retain the original source, convenient traceability, if there is the wrong place, thank you correct.
This address: http://www.cnblogs.com/lovesong/p/4694720.html

Customizing the Eclipse IDE Plug-in chapter (II)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.