Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] API change in jdt.core

Hi,

jdt.core has recently (3.6M3) added this API:

  org.eclipse.jdt.core.search.SearchEngine.createHierarchyScope(IJavaProject, IType, boolean)

If you are not calling this method you can safely disregard 
the rest of this message.

Mentioned method is currently being replaced by the following API:

  org.eclipse.jdt.core.search.SearchEngine.createStrictHierarchyScope(IJavaProject, IType, boolean, boolean, WorkingCopyOwner)

The previous method is now deprecated and will be removed before M5,
however adjusting to the change is easy, e.g., pde.ui will probably
want to change from

   searchScope = SearchEngine.createHierarchyScope(javaProject, superType, true, true, null);

to 

   searchScope = SearchEngine.createStrictHierarchyScope(javaProject, superType, true, false, null);

Please note that the second flag has different semantics between
both methods: it now controls whether the focus type should be
included in the search scope.

For details see https://bugs.eclipse.org/295894 and the API doc
of the new method.

sorry for any inconvenience,
Stephan


Back to the top