Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Platform
Release 3.5

Interface IContentTypeManager.ISelectionPolicy

Enclosing interface:

public static interface IContentTypeManager.ISelectionPolicy

A policy for refining the set of content types that should be accepted during content type matching operations.

Clients may implement this interface.

See Also:
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


IContentType[] select(
IContentType[] candidates,
                      boolean fileName,
                      boolean content)
Returns a subset of the given content types sorted by using a custom criterion.

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
an array of content types

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire