|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.team.core.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
|
static Status |
OK_STATUS
|
static String |
PREF_TEAM_IGNORES
|
static String |
PREF_TEAM_SEPARATOR
|
static String |
PREF_TEAM_TYPES
|
static int |
TEXT
|
static int |
UNKNOWN
|
Constructor Summary | |
Team()
|
Method Summary | |
static void |
addNatureToProject(IProject proj,
String natureId,
IProgressMonitor monitor)
Deprecated. |
static IIgnoreInfo[] |
getAllIgnores()
Returns the list of global ignores. |
static IFileTypeInfo[] |
getAllTypes()
Return all known file types. |
static IProjectSetSerializer |
getProjectSetSerializer(String id)
|
static int |
getType(IStorage storage)
Return the type of the given IStorage. |
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 |
removeNatureFromProject(IProject proj,
String natureId,
IProgressMonitor monitor)
Deprecated. |
static void |
setAllIgnores(String[] patterns,
boolean[] enabled)
Add patterns to the list of global ignores. |
static void |
setAllTypes(String[] extensions,
int[] types)
Set the file type for the give extension to the given type. |
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 String PREF_TEAM_IGNORES
public static final String PREF_TEAM_TYPES
public static final String PREF_TEAM_SEPARATOR
public static final Status OK_STATUS
public static final int UNKNOWN
public static final int TEXT
public static final int BINARY
Constructor Detail |
public Team()
Method Detail |
public static int getType(IStorage storage)
storage
- the IStoragepublic static boolean isIgnoredHint(IResource resource)
file
- the filepublic static boolean isIgnoredHint(IFile file)
public static boolean isIgnored(IFile file)
public static IFileTypeInfo[] getAllTypes()
public static IIgnoreInfo[] getAllIgnores()
public static void setAllTypes(String[] extensions, int[] types)
extension
- the file extensiontype
- the file typepublic static void setAllIgnores(String[] patterns, boolean[] enabled)
public static void removeNatureFromProject(IProject proj, String natureId, IProgressMonitor monitor) throws TeamException
proj
- the project to remove the nature fromnatureId
- the nature id to removemonitor
- a progress monitor to indicate the duration of the operation, or
null
if progress reporting is not required.public static void addNatureToProject(IProject proj, String natureId, IProgressMonitor monitor) throws TeamException
proj
- the project to add the naturenatureId
- the id of the nature to assign to the projectmonitor
- a progress monitor to indicate the duration of the operation, or
null
if progress reporting is not required.TeamException
- if a problem occured setting the naturepublic static void startup() throws CoreException
public static void shutdown()
public static IProjectSetSerializer getProjectSetSerializer(String id)
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |