null
to run default phases
* @param monitor A progress monitor, or null
if progress reporting is not required
* @return The result of executing the plan
*/
- public IStatus perform(IProvisioningPlan plan, IPhaseSet phaseSet, IProgressMonitor monitor);
+ IStatus perform(IProvisioningPlan plan, IPhaseSet phaseSet, IProgressMonitor monitor);
/**
* Executes a provisioning plan with a default phase set and context.
- *
+ *
* @param plan The plan describing the changes to be made
* @param monitor A progress monitor, or null
if progress reporting is not required
* @return The result of executing the plan
*/
- public IStatus perform(IProvisioningPlan plan, IProgressMonitor monitor);
+ IStatus perform(IProvisioningPlan plan, IProgressMonitor monitor);
}
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/IProfileRegistry.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/IProfileRegistry.java
index eddb377b33..557a284e92 100644
--- a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/IProfileRegistry.java
+++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/IProfileRegistry.java
@@ -20,9 +20,9 @@
import org.eclipse.equinox.p2.core.ProvisionException;
/**
- * This encapsulates the access to the profile registry.
+ * This encapsulates the access to the profile registry.
* It deals with persistence in a transparent way.
- *
+ *
* @noimplement This interface is not intended to be implemented by clients.
* @noextend This interface is not intended to be extended by clients.
* @since 2.0
@@ -35,77 +35,77 @@ public interface IProfileRegistry {
* may not have a defined self profile, for example if the running system doesn't
* have a profile, or resides in a different profile registry.
*/
- public static final String SELF = "_SELF_"; //$NON-NLS-1$
+ String SELF = "_SELF_"; //$NON-NLS-1$
/**
* Service name constant for the profile registry service.
*/
- public static final String SERVICE_NAME = IProfileRegistry.class.getName();
+ String SERVICE_NAME = "org.eclipse.equinox.p2.engine.IProfileRegistry"; //$NON-NLS-1$
/**
- * Return the profile in the registry that has the given id. If it does not exist,
+ * Return the profile in the registry that has the given id. If it does not exist,
* then return null
.
- *
+ *
* @param id the profile identifier
* @return the profile or null
*/
- public IProfile getProfile(String id);
+ IProfile getProfile(String id);
/**
- * Return the profile in the registry that has the given id and timestamp. If it does not exist,
+ * Return the profile in the registry that has the given id and timestamp. If it does not exist,
* then return null
.
- *
+ *
* @param id the profile identifier
* @param timestamp the profile's timestamp
* @return the profile or null
*/
- public IProfile getProfile(String id, long timestamp);
+ IProfile getProfile(String id, long timestamp);
/**
- * Return an array of timestamps in ascending order for the profile id in question.
+ * Return an array of timestamps in ascending order for the profile id in question.
* If there are none, then return an empty array.
- *
+ *
* @param id the id of the profile to list timestamps for
* @return the array of timestamps
*/
- public long[] listProfileTimestamps(String id);
+ long[] listProfileTimestamps(String id);
/**
* Return an array of profiles known to this registry. If there are none, then
* return an empty array.
- *
+ *
* @return the array of profiles
*/
- public IProfile[] getProfiles();
+ IProfile[] getProfiles();
/**
* Add the given profile to this profile registry.
- *
+ *
* @param id the profile id
* @throws ProvisionException if a profile
* with the same id is already present in the registry.
* @return the new empty profile
*/
- public IProfile addProfile(String id) throws ProvisionException;
+ IProfile addProfile(String id) throws ProvisionException;
/**
* Add the given profile to this profile registry.
- *
+ *
* @param id the profile id
* @param properties the profile properties
* @throws ProvisionException if a profile
* with the same id is already present in the registry.
* @return the new empty profile
*/
- public IProfile addProfile(String id, Maptrue
if this registry contains a profile with the given id,
* and false
otherwise.
*/
- public boolean containsProfile(String profileId);
+ boolean containsProfile(String profileId);
/**
* Remove the given profile snapshot from this profile registry. This method has no effect
@@ -113,50 +113,50 @@ public interface IProfileRegistry {
* The current profile cannot be removed using this method. When a particular profile state
* is removed from the registry, the corresponding profile state properties for that
* particular state are also removed.
- *
+ *
* @param id the profile to remove
- * @param timestamp the timestamp of the profile to remove
+ * @param timestamp the timestamp of the profile to remove
* @throws ProvisionException if the profile with the specified id and timestamp is the current profile.
*/
- public void removeProfile(String id, long timestamp) throws ProvisionException;
+ void removeProfile(String id, long timestamp) throws ProvisionException;
/**
* Remove the given profile from this profile registry. This method has no effect
* if this registry does not contain a profile with the given id. When a profile is removed
* from the registry, all of its associated profile state properties are removed as well.
- *
+ *
* @param id the profile to remove
*/
- public void removeProfile(String id);
+ void removeProfile(String id);
/**
* Check if the given profile from this profile registry is up-to-date.
- *
+ *
* @param profile the profile to check
* @return boolean true if the profile is current; false otherwise.
*/
- public boolean isCurrent(IProfile profile);
+ boolean isCurrent(IProfile profile);
/**
* Set properties on a specific profile state. Overwrite existing properties if present.
- *
+ *
* @param id the identifier of the profile
* @param timestamp the timestamp of the profile
* @param properties the properties to set on the profile
* @return status object indicating success or failure
- * @throws NullPointerException if either id or properties are null
+ * @throws NullPointerException if either id or properties are null
* @since 2.1
*/
- public IStatus setProfileStateProperties(String id, long timestamp, Map* Use of this method is discouraged if multiple properties will be set on the same state since - * the implementation of this method may access the file-system with each call. Callers should use - * {@link #setProfileStateProperties(String, long, Map)} instead. + * the implementation of this method may access the file-system with each call. Callers should use + * {@link #setProfileStateProperties(String, long, Map)} instead. *
- * + * * @param id the profile identifier * @param timestamp the timestamp of the profile * @param key the property key to set @@ -165,13 +165,13 @@ public interface IProfileRegistry { * @throws NullPointerException if any of id, key or value isnull
* @since 2.1
*/
- public IStatus setProfileStateProperty(String id, long timestamp, String key, String value);
+ IStatus setProfileStateProperty(String id, long timestamp, String key, String value);
/**
* Return all properties for a particular profile state. Both the key and the values are String
.
* Return an empty map if there was a problem accessing the properties.
* - * There is no guarantee that all state timestamps returned will still exist in the registry + * There is no guarantee that all state timestamps returned will still exist in the registry * since the user could delete profile states from the file system. *
* @param id the profile identifier @@ -180,14 +180,14 @@ public interface IProfileRegistry { * @throws NullPointerException if profile id isnull
.
* @since 2.1
*/
- public MapString
.
* Return an empty map if there was a problem accessing the properties.
* - * There is no guarantee that all state timestamps returned will still exist in the registry + * There is no guarantee that all state timestamps returned will still exist in the registry * since the user could delete profile states from the file system. *
* @param id the profile identifier @@ -196,13 +196,13 @@ public interface IProfileRegistry { * @throws NullPointerException if the profile id or key isnull
.
* @since 2.1
*/
- public Mapnull
then remove all properties from the profile state.
- *
+ *
* @param id the profile identifier
* @param timestamp the profile timestamp
* @param keys the property keys to remove, or null
@@ -210,5 +210,5 @@ public interface IProfileRegistry {
* @throws NullPointerException if the profile id is null
.
* @since 2.1
*/
- public IStatus removeProfileStateProperties(String id, long timestamp, Collection