This document lists changes made to the Search API.
Fuller descriptions of all changes can be found below (follow links).
Not all deprecations are listed here, assuming that the deprecated APIs continue to essentially work. For a full deprecation list, please consult the Javadoc.
SearchGroup.onStopSearch
Utils
SearchInfo.Files
createCompoundSearchInfo(...)
to class SearchInfoFactory
SearchInfo
objects contained in Projects'
lookups are now taken into account by action Find in Projects...
ADD_TO_HISTORY field
SearchHistory and SearchPattern classes
SearchInfo interface
together with a factory class SearchInfoFactory
and interface FileObjectFilter
These API specification versions may be used to indicate that a module requires a certain API feature in order to function. For example, if you see here a feature you need which is labelled 1.20, your manifest should contain in its main attributes the line:
OpenIDE-Module-Module-Dependencies: org.openidex.util/3 > 1.20
SearchGroup.onStopSearch
Utils
SearchInfo.Files
createCompoundSearchInfo(...)
to class SearchInfoFactory
SearchInfo
objects contained in Projects'
lookups are now taken into account by action Find in Projects...
ADD_TO_HISTORY field
SearchHistory and SearchPattern classes
SearchInfo interface
together with a factory class SearchInfoFactory
and interface FileObjectFilter
org.openidex.search.FileObjectFilter
SearchInfo interface
together with a factory class SearchInfoFactory
and interface FileObjectFilter
org.openidex.search.SearchGroup
SearchGroup.onStopSearch
org.openidex.search.SearchHistory
ADD_TO_HISTORY field
SearchHistory and SearchPattern classes
org.openidex.search.SearchInfo
SearchInfo.Files
SearchInfo interface
together with a factory class SearchInfoFactory
and interface FileObjectFilter
org.openidex.search.SearchInfoFactory
createCompoundSearchInfo(...)
to class SearchInfoFactory
SearchInfo interface
together with a factory class SearchInfoFactory
and interface FileObjectFilter
org.openidex.search.SearchPattern
SearchHistory and SearchPattern classes
org.openidex.search.Utils
Utils
SearchGroup.onStopSearch
SearchGroup; made by: jhavlin; issues:
#193361
Class SearchGroup now contains method
onStopSearch, that can be overriden in subclasses
to perform some custom operations that are needed to stop the
search, e.g. terminate internal tasks.
Utils
Utils; made by: kaktus
Class Utils made public with one public static method
getFileObjectsIterator(SearchInfo si). This utility
method returns Iterator of FileObjects
for the provided SearchInfo. This change simplifies
the work with SearchInfo implementations.
SearchInfo.Files
SearchInfo; made by: kaktus; issues:
#134558
Added SearchInfo.Files interface which extends
SearchInfo interface. It adds method
filesToSearch() to provide FileObjects
which should be searched. This change allows to operate FileObjects
in the search mechanism instead of DataObjects and
as a result improves search performance.
createCompoundSearchInfo(...)
to class SearchInfoFactory
SearchInfoFactory; made by: mpetras
Compound SearchInfo is a useful functionality that
has been present in the package since the
SearchInfo interface had been introduced. It just
was not available from outside the
org.openidex.search package. This change makes it
available through a public factory method.
SearchInfo
objects contained in Projects'
lookups are now taken into account by action Find in Projects...
SearchInfo
objects – it always searched
projects' SourceGroups.
Now the action first checks the
project's Lookup
for presence of a SearchInfo object. If some
SearchInfo is present, it is used for the search,
and only if there is no SearchInfo,
the project's SourceGroups are searched.
ADD_TO_HISTORY field
SearchHistory; made by: mroskanin; issues:
#54028
#54451
It is necessary to fire further PropertyChangeEvent to fix it. (Details in the issue #54028)It is event ADD_TO_HISTORY, that will be fired after adding new SearchPattern to history. Old value of event would be null, new value would be added pattern. Also pattern checking before adding to history is a subject of the API change.
SearchHistory and SearchPattern classes
SearchHistory SearchPattern; made by: mroskanin; issues:
#51964
Editor find and replace dialog and search over files in explorer should have one and shareable history. Editor module should be notified about last selected search expression to highlight(in yellow) the matched patterns.
SearchInfo interface
together with a factory class SearchInfoFactory
and interface FileObjectFilter
SearchInfo SearchInfoFactory FileObjectFilter; made by: mpetras; issues:
#42540
#43940
In NetBeans 3.6, only nodes representing file folders were
searchable. In NetBeans 4.0, there are several special views
and nodes not representing folders. But many of these nodes
still need to be searchable. Interface SearchInfo
allows to specify how a particular node should be searched
- simply by putting a SearchInfo object to the
node's lookup.
Built on May 25 2012. | Portions Copyright 1997-2012 Oracle. All rights reserved.