1. Several improvements have been added to Search > Occurrences in
File:
Unsorted views like the Outline view and the Members view in the Java browsing perspective can now be used to rearrange members by drag and drop.
To assist plug-in developers, extra validation was added to help with access restriction issues that could be solved by exporting a package. For example, say you have two plug-ins: a and b. If a attempts to use a class from b and b doesn't export the package containing the class, you'll receive a warning and applicable quickfix.
- The quick menu (Ctrl+Shift+U) now only shows the searches applicable for the current selection. If only one search kind is possible, the shortcut will directly invoke the search.
- The menu now offers all searches available by Mark Occurrences.
- Matches are now highlighted with different colors for read and write accesses in the search view.
- The search view offers a Link with Editor mode where the view input is connected to the current editor selection.
2. More Java search options
Type reference search can now be limited to specific match locations in the code. For example, you can find references in cast expressions, or in field and local variable types.
The following example shows how to search for all catch clauses in your code (search for references to '*' and limit to catch clauses):
Unsorted views like the Outline view and the Members view in the Java browsing perspective can now be used to rearrange members by drag and drop.
4. PDE Quickfix for Java file issues
To assist plug-in developers, extra validation was added to help with access restriction issues that could be solved by exporting a package. For example, say you have two plug-ins: a and b. If a attempts to use a class from b and b doesn't export the package containing the class, you'll receive a warning and applicable quickfix.
Quickfixes are now provided to aid users in adding dependencies to their plug-in that will attempt to resolve unresolved classes. If any plug-ins export a package that matches an unresolved class's package, PDE creates Quickfixes to add the package to an Import-Package statement or require the bundle directly through a Require-Bundle entry.