### Eclipse Workspace Patch 1.0 #P org.eclipse.equinox.p2.core Index: src/org/eclipse/equinox/internal/provisional/p2/core/repository/IRepositoryManager.java =================================================================== RCS file: /cvsroot/rt/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/provisional/p2/core/repository/IRepositoryManager.java,v retrieving revision 1.6 diff -u -r1.6 IRepositoryManager.java --- src/org/eclipse/equinox/internal/provisional/p2/core/repository/IRepositoryManager.java 18 Feb 2009 23:13:47 -0000 1.6 +++ src/org/eclipse/equinox/internal/provisional/p2/core/repository/IRepositoryManager.java 19 Feb 2009 16:26:54 -0000 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008 IBM Corporation and others. + * Copyright (c) 2008, 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -55,7 +55,9 @@ public static final int REPOSITORIES_SYSTEM = 1 << 0; /** - * Constant used to indicate that a repository should be modifiable + * Constant used to indicate that a repository manager should only load the + * repository if it is modifiable + * @see IRepository#isModifiable() */ public static final int REPOSITORY_HINT_MODIFIABLE = 1 << 0; #P org.eclipse.equinox.p2.artifact.repository Index: src/org/eclipse/equinox/internal/provisional/p2/artifact/repository/IArtifactRepositoryManager.java =================================================================== RCS file: /cvsroot/rt/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/provisional/p2/artifact/repository/IArtifactRepositoryManager.java,v retrieving revision 1.16 diff -u -r1.16 IArtifactRepositoryManager.java --- src/org/eclipse/equinox/internal/provisional/p2/artifact/repository/IArtifactRepositoryManager.java 18 Feb 2009 23:13:43 -0000 1.16 +++ src/org/eclipse/equinox/internal/provisional/p2/artifact/repository/IArtifactRepositoryManager.java 19 Feb 2009 16:26:55 -0000 @@ -86,7 +86,6 @@ * load attempts. *

* - * @deprecated see {@link #loadRepository(URI, int, IProgressMonitor)} * @param location the location in which to look for a repository description * @param monitor a progress monitor, or null if progress * reporting is not desired @@ -109,15 +108,13 @@ * if they do not want the repository manager to remember the repository for subsequent * load attempts. *

- * *

* The flags passed in should be taken as a hint for the type of repository to load. If - * the manager will not load a repository that satisfies these hints, it can fail - * fast.
- * See {@link IRepositoryManager#REPOSITORY_HINT_MODIFIABLE} + * the manager cannot load a repository that satisfies these hints, it can fail fast. *

* @param location the location in which to look for a repository description - * @param flags - flags to consider when loading + * @param flags - bit-wise or of flags to consider when loading the repository + * (currently only {@link IRepositoryManager#REPOSITORY_HINT_MODIFIABLE} is supported) * @param monitor a progress monitor, or null if progress * reporting is not desired * @return a repository object for the given location #P org.eclipse.equinox.p2.metadata.repository Index: src/org/eclipse/equinox/internal/provisional/p2/metadata/repository/IMetadataRepositoryManager.java =================================================================== RCS file: /cvsroot/rt/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/provisional/p2/metadata/repository/IMetadataRepositoryManager.java,v retrieving revision 1.19 diff -u -r1.19 IMetadataRepositoryManager.java --- src/org/eclipse/equinox/internal/provisional/p2/metadata/repository/IMetadataRepositoryManager.java 19 Feb 2009 13:56:24 -0000 1.19 +++ src/org/eclipse/equinox/internal/provisional/p2/metadata/repository/IMetadataRepositoryManager.java 19 Feb 2009 16:26:56 -0000 @@ -81,7 +81,6 @@ *
  • There is no existing repository at that location.
  • *
  • The repository at that location could not be read.
  • * - * @deprecated see {@link #loadRepository(URI, int, IProgressMonitor)} */ public IMetadataRepository loadRepository(URI location, IProgressMonitor monitor) throws ProvisionException; @@ -97,12 +96,11 @@ *

    *

    * The flags passed in should be taken as a hint for the type of repository to load. If - * the manager will not load a repository that satisfies these hints, it can fail - * fast.
    - * See {@link IRepositoryManager#REPOSITORY_HINT_MODIFIABLE} + * the manager cannot load a repository that satisfies these hints, it can fail fast. *

    * @param location The location of the repository to load - * @param flags - flags to consider when loading the repository + * @param flags - bit-wise or of flags to consider when loading the repository + * (currently only {@link IRepositoryManager#REPOSITORY_HINT_MODIFIABLE} is supported) * @param monitor a progress monitor, or null if progress * reporting is not desired * @return The loaded metadata repository @@ -111,6 +109,7 @@ *
  • There is no existing repository at that location.
  • *
  • The repository at that location could not be read.
  • * + * @see IRepositoryManager#REPOSITORY_HINT_MODIFIABLE */ public IMetadataRepository loadRepository(URI location, int flags, IProgressMonitor monitor) throws ProvisionException;