Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Pazderski2019-05-18 14:07:38 +0000
committerPaul Pazderski2019-05-19 23:54:17 +0000
commitde3c0c5ff08c928e6d1eb4fac2704bbb2d261669 (patch)
treede6e0a11c45731a312b5e239c22387afe93fe19c /bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamCapabilityHelper.java
parent5e9e26b1abe5bd1df37faa91fde2d87fd79ed06b (diff)
downloadeclipse.platform.team-de3c0c5ff08c928e6d1eb4fac2704bbb2d261669.tar.gz
eclipse.platform.team-de3c0c5ff08c928e6d1eb4fac2704bbb2d261669.tar.xz
eclipse.platform.team-de3c0c5ff08c928e6d1eb4fac2704bbb2d261669.zip
This change fixes space or mixed tab/space indentations in all Java files. This also includes two or three space indentations and even fix most stray single spaces in indentations. The change includes only whitespace formatting and no code changes. Change-Id: I4149aaf4e48ccf7b49083f36d52e0c7a67433c7d
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamCapabilityHelper.java')
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamCapabilityHelper.java146
1 files changed, 73 insertions, 73 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamCapabilityHelper.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamCapabilityHelper.java
index ec3b41b90..a864f5f78 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamCapabilityHelper.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamCapabilityHelper.java
@@ -41,53 +41,53 @@ import org.eclipse.ui.activities.WorkbenchActivityHelper;
* @since 3.0
*/
public class TeamCapabilityHelper {
- /**
- * Mapping from repository provider id to IPluginContribution. Used for proper
- * activity mapping of natures.
- */
- private Map<String, IPluginContribution> providerIdToPluginId;
+ /**
+ * Mapping from repository provider id to IPluginContribution. Used for proper
+ * activity mapping of natures.
+ */
+ private Map<String, IPluginContribution> providerIdToPluginId;
- /**
- * Singleton instance.
- */
- private static TeamCapabilityHelper singleton;
+ /**
+ * Singleton instance.
+ */
+ private static TeamCapabilityHelper singleton;
- /**
- * Get the singleton instance of this class.
- * @return the singleton instance of this class.
- * @since 3.0
- */
- public static TeamCapabilityHelper getInstance() {
- if (singleton == null) {
- singleton = new TeamCapabilityHelper();
- }
- return singleton;
- }
+ /**
+ * Get the singleton instance of this class.
+ * @return the singleton instance of this class.
+ * @since 3.0
+ */
+ public static TeamCapabilityHelper getInstance() {
+ if (singleton == null) {
+ singleton = new TeamCapabilityHelper();
+ }
+ return singleton;
+ }
- /**
- * Create a new <code>IDEWorkbenchActivityHelper</code> which will listen
- * for workspace changes and promote activities accordingly.
- */
- private TeamCapabilityHelper() {
- providerIdToPluginId = new HashMap<String, IPluginContribution>();
- loadRepositoryProviderIds();
+ /**
+ * Create a new <code>IDEWorkbenchActivityHelper</code> which will listen
+ * for workspace changes and promote activities accordingly.
+ */
+ private TeamCapabilityHelper() {
+ providerIdToPluginId = new HashMap<String, IPluginContribution>();
+ loadRepositoryProviderIds();
- // crawl the initial projects
- IProject [] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
- IWorkbenchActivitySupport workbenchActivitySupport = PlatformUI.getWorkbench().getActivitySupport();
- for (int i = 0; i < projects.length; i++) {
- try {
- processProject(projects[i], workbenchActivitySupport);
- } catch (CoreException e) {
- // do nothing
- }
- }
- }
+ // crawl the initial projects
+ IProject [] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
+ IWorkbenchActivitySupport workbenchActivitySupport = PlatformUI.getWorkbench().getActivitySupport();
+ for (int i = 0; i < projects.length; i++) {
+ try {
+ processProject(projects[i], workbenchActivitySupport);
+ } catch (CoreException e) {
+ // do nothing
+ }
+ }
+ }
- /**
- * Loads the list of registered provider types
- */
- public void loadRepositoryProviderIds() {
+ /**
+ * Loads the list of registered provider types
+ */
+ public void loadRepositoryProviderIds() {
providerIdToPluginId.clear();
IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint("org.eclipse.team.core.repository"); //$NON-NLS-1$
if (point != null) {
@@ -120,25 +120,25 @@ public class TeamCapabilityHelper {
}
}
- /**
- * Handle natures for the given project.
- *
- * @param project the project
- * @param workbenchActivitySupport the activity support
- */
- protected void processProject(IProject project, IWorkbenchActivitySupport workbenchActivitySupport) throws CoreException {
+ /**
+ * Handle natures for the given project.
+ *
+ * @param project the project
+ * @param workbenchActivitySupport the activity support
+ */
+ protected void processProject(IProject project, IWorkbenchActivitySupport workbenchActivitySupport) throws CoreException {
if (!project.isOpen())
return;
String id = getProviderIdFor(project);
processRepositoryId(id, workbenchActivitySupport);
}
- /**
- * Helper method that enables the activities for the given repository provider.
- *
- * @param id the repository provider id
- * @param workbenchActivitySupport the activity support
- */
+ /**
+ * Helper method that enables the activities for the given repository provider.
+ *
+ * @param id the repository provider id
+ * @param workbenchActivitySupport the activity support
+ */
public void processRepositoryId(String id, IWorkbenchActivitySupport workbenchActivitySupport) {
if (id == null)
return;
@@ -159,27 +159,27 @@ public class TeamCapabilityHelper {
workbenchActivitySupport.setEnabledActivityIds(activities);
}
- /**
- * Returns the provider id for this project or <code>null</code> if no providers are mapped
- * to this project. Note that this won't instantiate the provider, but instead will simply query
- * the persistent property
- *
- * @param project the project to query.
- * @return the provider id for this project or <code>null</code> if no providers are mapped
- * to this project
- * @throws CoreException
- */
- public String getProviderIdFor(IProject project) throws CoreException {
- if(project.isAccessible()) {
+ /**
+ * Returns the provider id for this project or <code>null</code> if no providers are mapped
+ * to this project. Note that this won't instantiate the provider, but instead will simply query
+ * the persistent property
+ *
+ * @param project the project to query.
+ * @return the provider id for this project or <code>null</code> if no providers are mapped
+ * to this project
+ * @throws CoreException
+ */
+ public String getProviderIdFor(IProject project) throws CoreException {
+ if(project.isAccessible()) {
//First, look for the session property
Object prop = project.getSessionProperty(TeamPlugin.PROVIDER_PROP_KEY);
if(prop != null && prop instanceof RepositoryProvider) {
- RepositoryProvider provider = (RepositoryProvider) prop;
- return provider.getID();
- }
+ RepositoryProvider provider = (RepositoryProvider) prop;
+ return provider.getID();
+ }
//Next, check if it has the ID as a persistent property
return project.getPersistentProperty(TeamPlugin.PROVIDER_PROP_KEY);
- }
- return null;
- }
+ }
+ return null;
+ }
}

Back to the top