From 8bcc5faff77477eb0bd0d2171b87e51975c10dbb Mon Sep 17 00:00:00 2001 From: Jean Michel-Lemieux Date: Tue, 19 Mar 2002 03:31:48 +0000 Subject: *** empty log message *** --- .../src/org/eclipse/team/core/IIgnoreInfo.java | 2 ++ .../org/eclipse/team/core/RepositoryProvider.java | 34 ++++++++++++---------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/IIgnoreInfo.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/IIgnoreInfo.java index d938c6303..9c5c8260f 100644 --- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/IIgnoreInfo.java +++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/IIgnoreInfo.java @@ -13,6 +13,8 @@ package org.eclipse.team.core; /** * An ignore info specifies both the pattern and the enabled state * of a globally ignored pattern. + * + * @since 2.0 */ public interface IIgnoreInfo { /** diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java index 5c326c23c..c2d74217e 100644 --- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java +++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java @@ -35,7 +35,7 @@ import org.eclipse.team.internal.simpleAccess.SimpleAccessOperations; * instances is managed by the platform's 'nature' mechanism. *
* To create a repository provider and have it registered with the platform a client - * must minimally (e.g. not including the user interface integration requirements): + * must minimally: *
RepositoryProvider
* - define a nature extension in
plugin.xml
that is
@@ -85,14 +85,11 @@ public abstract class RepositoryProvider implements IProjectNature {
/**
* Configures the nature for the given project. This is called by the platform when a nature is assigned
- * to a project. It is not intended to be called by clients.
- *
- * The default behavior for RepositoryProvider
subclasses is to fail the configuration
- * if a provider is already associated with the given project. Subclasses cannot override this method
- * but must instead override configureProject
.
+ * to a project. It is not intended to be called by clients.
*
* @throws CoreException if this method fails. If the configuration fails the nature will not be added
* to the project.
+ *
* @see IProjectNature#configure
*/
final public void configure() throws CoreException {
@@ -174,13 +171,11 @@ public abstract class RepositoryProvider implements IProjectNature {
/**
* Returns the provider for a given IProject or null
if a provider is not associated with
- * the project or if the project is closed or does not exist.
- *
- * To look for a specific repository provider type, then getProvider(project, id)
- * is a faster method. This method is should be called if the caller can work with any
- * type of repository provider.
+ * the project or if the project is closed or does not exist. This method should be called if the caller
+ * is looking for any repository provider. Otherwise call getProvider(project, id)
+ * yo look for a specific repository provider type.
*
- *
+ * @param project the project to query for a provider
* @return the repository provider associated with the project
*/
final public static RepositoryProvider getProvider(IProject project) {
@@ -208,9 +203,11 @@ public abstract class RepositoryProvider implements IProjectNature {
}
/**
- * Returns a provider of type the receiver if associated with the given project or null
- * if the project is not associated with a provider of that type.
+ * Returns a provider of type with the given id if associated with the given project
+ * or null
if the project is not associated with a provider of that type.
*
+ * @param project the project to query for a provider
+ * @param id the repository provider id
* @return the repository provider
*/
final public static RepositoryProvider getProvider(IProject project, String id) {
@@ -228,7 +225,7 @@ public abstract class RepositoryProvider implements IProjectNature {
}
/**
- * Utility for adding a nature to a project.
+ * Utility method for adding a nature to a project.
*
* @param proj the project to add the nature
* @param natureId the id of the nature to assign to the project
@@ -253,7 +250,12 @@ public abstract class RepositoryProvider implements IProjectNature {
}
/**
- * Utility for removing a project nature.
+ * Utility method for removing a project nature from a project.
+ *
+ * @param proj the project to remove the nature from
+ * @param natureId the nature id to remove
+ * @param monitor a progress monitor to indicate the duration of the operation, or
+ * null
if progress reporting is not required.
*/
final public static void removeNatureFromProject(IProject proj, String natureId, IProgressMonitor monitor) throws TeamException {
try {
--
cgit v1.2.3