public final class Team extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BINARY |
protected static SortedMap |
globalIgnore |
static Status |
OK_STATUS |
protected static SortedMap |
pluginIgnore |
static int |
TEXT |
static int |
UNKNOWN |
Constructor and Description |
---|
Team() |
Modifier and Type | Method and Description |
---|---|
static IStorageMerger |
createMerger(IContentType type)
Creates a storage merger for the given content type.
|
static IStorageMerger |
createMerger(String extension)
Creates a storage merger for the given file extension.
|
IStorageMerger |
createStorageMerger(IContentType type)
Deprecated.
Use
createMerger(IContentType) instead. |
IStorageMerger |
createStorageMerger(String extension)
Deprecated.
Use
createMerger(String) instead. |
static IIgnoreInfo[] |
getAllIgnores()
Returns the list of global ignores.
|
static IFileTypeInfo[] |
getAllTypes()
Deprecated.
Use
getFileContentManager().getExtensionMappings() instead. |
static org.eclipse.team.core.importing.provisional.IBundleImporter[] |
getBundleImporters()
Returns the available bundle importers.
|
static IIgnoreInfo[] |
getDefaultIgnores()
Return the default ignore infos
(i.e. those that are specified in
plugin manifests).
|
static IFileTypeInfo[] |
getDefaultTypes()
Deprecated.
Use Team.getFileContentManager().getDefaultExtensionMappings() instead.
|
static IFileContentManager |
getFileContentManager()
Get the file content manager which implements the API for manipulating the mappings between
file names, file extensions and content types.
|
static IProjectSetSerializer |
getProjectSetSerializer(String id)
Deprecated.
Use
RepositoryProviderType.getProjectSetCapability()
to obtain an instance of ProjectSetCapability instead. |
static int |
getType(IStorage storage)
Deprecated.
Use
getFileContentManager().getType(IStorage storage) instead. |
static boolean |
isIgnored(IFile file)
Deprecated.
use isIgnoredHint instead
|
static boolean |
isIgnoredHint(IFile file)
Deprecated.
use isIgnoredHint(IResource) instead
|
static boolean |
isIgnoredHint(IResource resource)
Returns whether the given file or folder with its content should be ignored.
|
static void |
setAllIgnores(String[] patterns,
boolean[] enabled)
Add patterns to the list of global ignores.
|
static void |
setAllTypes(String[] extensions,
int[] types)
Deprecated.
Use
getFileContentManager().setExtensionMappings() instead. |
static void |
shutdown()
Shut down the registry, persisting its state.
|
static void |
startup()
Initialize the registry, restoring its state.
|
public static final Status OK_STATUS
public static final int UNKNOWN
public static final int TEXT
public static final int BINARY
protected static SortedMap globalIgnore
protected static SortedMap pluginIgnore
public static int getType(IStorage storage)
getFileContentManager().getType(IStorage storage)
instead.storage
- the IStoragepublic static boolean isIgnoredHint(IResource resource)
resource
- the file or folderpublic static boolean isIgnoredHint(IFile file)
file
- file to checktrue
if this file should be ignored, and false
otherwisepublic static boolean isIgnored(IFile file)
file
- file to checktrue
if this file should be ignored, and false
otherwisepublic static IFileTypeInfo[] getAllTypes()
getFileContentManager().getExtensionMappings()
instead.public static IIgnoreInfo[] getAllIgnores()
public static void setAllTypes(String[] extensions, int[] types)
getFileContentManager().setExtensionMappings()
instead.extensions
- the file extensionstypes
- the file typespublic static void setAllIgnores(String[] patterns, boolean[] enabled)
patterns
- Array of patterns to setenabled
- Array of booleans indicating if given pattern is enabledpublic static void startup()
public static void shutdown()
public static IProjectSetSerializer getProjectSetSerializer(String id)
RepositoryProviderType.getProjectSetCapability()
to obtain an instance of ProjectSetCapability
instead.public static IIgnoreInfo[] getDefaultIgnores()
public static IFileTypeInfo[] getDefaultTypes()
public static IFileContentManager getFileContentManager()
IFileContentManager
public static IStorageMerger createMerger(IContentType type)
null
is returned.type
- the type for which to find a storage mergernull
if no
storage merger has been registeredpublic static IStorageMerger createMerger(String extension)
null
is returned.extension
- the extension for which to find a storage mergernull
if no
storage merger has been registeredpublic IStorageMerger createStorageMerger(IContentType type)
createMerger(IContentType)
instead.null
is returned.type
- the type for which to find a storage mergernull
if no
storage merger has been registeredpublic IStorageMerger createStorageMerger(String extension)
createMerger(String)
instead.null
is returned.extension
- the extension for which to find a storage mergernull
if no
storage merger has been registeredpublic static org.eclipse.team.core.importing.provisional.IBundleImporter[] getBundleImporters()
EXPERIMENTAL. This interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the Team team.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.