|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A policy for refining the set of content types that should be accepted during content type matching operations.
Clients may implement this interface.
IContentTypeManager.getMatcher(IContentTypeManager.ISelectionPolicy, IScopeContext)
Method Summary | |
---|---|
IContentType[] |
select(IContentType[] candidates,
boolean fileName,
boolean content)
Returns a subset of the given content types sorted by using a custom criterion. |
Method Detail |
public IContentType[] select(IContentType[] candidates, boolean fileName, boolean content)
The given array of content types has already been sorted using the platform rules. If this object follows the same rules, further sorting is not necessary.
The type of matching being performed (name, contents or name + contents) might affect the outcome for this method. For instance, for file name-only matching, the more general type could have higher priority. For content-based matching, the more specific content type could be preferred instead.
candidates
- an array containing content types matching some queryfileName
- whether it is a file name-based content type matchingcontent
- whether its a content-based content type matching
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.