Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "JDT weaving features"
(Introduction) |
(Filled in everything else) |
||
Line 6: | Line 6: | ||
*ITD-aware type hierarchies | *ITD-aware type hierarchies | ||
*ITD-aware reconciling/eager parsing | *ITD-aware reconciling/eager parsing | ||
− | * | + | *Ability to search for aspect elements using standard ''Java search'' and ''Open Java type'' |
+ | |||
+ | |||
+ | ==Installation== | ||
+ | |||
+ | Weaving AJDT is only available for Eclipse 3.4. Use the update site: | ||
+ | |||
+ | http://download.eclipse.org/tools/ajdt/34/dev/weaving | ||
+ | |||
+ | Installing from this update site will automatically install Equinox Aspects from a separate update site. Additionally, the install will update your config.ini file to allow the weaving service to be enabled at startup. | ||
+ | |||
+ | Due to [https://bugs.eclipse.org/bugs/show_bug.cgi?id=257178 Bug 257178], it is currently only possible to install Weaving AJDT in the same directory that Eclipse itself is installed in. | ||
+ | |||
+ | |||
+ | ==Runtime== | ||
+ | |||
+ | To see if the JDT Weaving plugin is properly configured: | ||
+ | |||
+ | #Create a new aspect in an AspectJ project and save. | ||
+ | #Open the ''Open Types'' dialog (Ctrl-Shift-t on Windows). | ||
+ | #Type the name of the new aspect. | ||
+ | #If it appears, rejoice! The JDT weaving plugin is now working. | ||
+ | |||
+ | ==Uninstalling== | ||
+ | |||
+ | Uninstall Weaving AJDT in the same way you uninstall any other Eclipse feature: | ||
+ | |||
+ | Help -> Software Updates -> Installed Software | ||
+ | |||
+ | Select AJDT, and click ''Uninstall...''. This will also uninstall Equinox Aspects and reset your config.ini to its previous state. | ||
+ | |||
+ | |||
+ | ==Running Weaving AJDT without JDT Weaving== | ||
+ | |||
+ | It is possible to disable the weaving service and still run AJDT 1.6.2. However, all the advanced features will be disabled. | ||
+ | |||
+ | In the file eclipse/configuration/config.ini, delete the line that looks something like this: | ||
+ | |||
+ | osgi.framework.extensions=org.eclipse.equinox.weaving.hook | ||
+ | |||
+ | For now, there is no automatic way of doing this. In the future, there will be an option in the preferences page for this. |
Revision as of 20:53, 2 December 2008
Starting with version 1.6.2, AJDT will be shipped with the JDT weaving plugin. This plugin uses Equinox Aspects to weave into JDT (more specifically, the org.eclipse.jdt.core, org.eclipse.jdt.ui, and org.eclipse.jdt.debug.core plugins).
This provides an opportunity for deep integration with Eclipse in ways that were not possible before. This release introduces the following features:
- ITD-aware content assist
- ITD-aware type hierarchies
- ITD-aware reconciling/eager parsing
- Ability to search for aspect elements using standard Java search and Open Java type
Installation
Weaving AJDT is only available for Eclipse 3.4. Use the update site:
http://download.eclipse.org/tools/ajdt/34/dev/weaving
Installing from this update site will automatically install Equinox Aspects from a separate update site. Additionally, the install will update your config.ini file to allow the weaving service to be enabled at startup.
Due to Bug 257178, it is currently only possible to install Weaving AJDT in the same directory that Eclipse itself is installed in.
Runtime
To see if the JDT Weaving plugin is properly configured:
- Create a new aspect in an AspectJ project and save.
- Open the Open Types dialog (Ctrl-Shift-t on Windows).
- Type the name of the new aspect.
- If it appears, rejoice! The JDT weaving plugin is now working.
Uninstalling
Uninstall Weaving AJDT in the same way you uninstall any other Eclipse feature:
Help -> Software Updates -> Installed Software
Select AJDT, and click Uninstall.... This will also uninstall Equinox Aspects and reset your config.ini to its previous state.
Running Weaving AJDT without JDT Weaving
It is possible to disable the weaving service and still run AJDT 1.6.2. However, all the advanced features will be disabled.
In the file eclipse/configuration/config.ini, delete the line that looks something like this:
osgi.framework.extensions=org.eclipse.equinox.weaving.hook
For now, there is no automatic way of doing this. In the future, there will be an option in the preferences page for this.