public static interface IContentTypeManager.ISelectionPolicy
Clients may implement this interface.
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 query
fileName- whether it is a file name-based content type matching
content- whether its a content-based content type matching
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.