|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.team.core.Team
public final class Team
The Team class provides a global point of reference for the global ignore set and the text/binary registry.
| Field Summary | |
|---|---|
static int |
BINARY
|
protected static SortedMap |
globalIgnore
|
static Status |
OK_STATUS
|
protected static SortedMap |
pluginIgnore
|
static int |
TEXT
|
static int |
UNKNOWN
|
| Constructor Summary | |
|---|---|
Team()
|
|
| Method Summary | |
|---|---|
IStorageMerger |
createStorageMerger(IContentType type)
Creates a storage merger for the given content type. |
IStorageMerger |
createStorageMerger(String extension)
Creates a storage merger for the given file extension. |
static IIgnoreInfo[] |
getAllIgnores()
Returns the list of global ignores. |
static IFileTypeInfo[] |
getAllTypes()
Deprecated. Use getFileContentManager().getExtensionMappings() instead. |
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 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public Team()
| Method Detail |
|---|
public static int getType(IStorage storage)
getFileContentManager().getType(IStorage storage) instead.
storage - the IStorage
public static boolean isIgnoredHint(IResource resource)
resource - the file
public static boolean isIgnoredHint(IFile file)
public static boolean isIgnored(IFile file)
public 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 types
public static void setAllIgnores(String[] patterns,
boolean[] enabled)
public 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()
IFileContentManagerpublic IStorageMerger createStorageMerger(IContentType type)
null is returned.
type - the type for which to find a storage merger
null if no
storage merger has been registeredpublic IStorageMerger createStorageMerger(String extension)
null is returned.
extension - the extension for which to find a storage merger
null if no
storage merger has been registered
|
Eclipse Platform Release 3.2 |
|||||||||
| 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, 2006. All rights reserved.