diff options
author | Paul Pazderski | 2019-05-18 14:07:38 +0000 |
---|---|---|
committer | Paul Pazderski | 2019-05-19 23:54:17 +0000 |
commit | de3c0c5ff08c928e6d1eb4fac2704bbb2d261669 (patch) | |
tree | de6e0a11c45731a312b5e239c22387afe93fe19c /bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamCapabilityHelper.java | |
parent | 5e9e26b1abe5bd1df37faa91fde2d87fd79ed06b (diff) | |
download | eclipse.platform.team-de3c0c5ff08c928e6d1eb4fac2704bbb2d261669.tar.gz eclipse.platform.team-de3c0c5ff08c928e6d1eb4fac2704bbb2d261669.tar.xz eclipse.platform.team-de3c0c5ff08c928e6d1eb4fac2704bbb2d261669.zip |
Bug 547304 - [cleanup] Fix wrong space/tab indentationS4_12_0_RC2S4_12_0_RC1aS4_12_0_RC1S4_12_0_M3R4_12I20190605-1800I20190605-0600I20190604-1800I20190604-0600I20190603-1800I20190603-0600I20190602-1800I20190602-0600I20190601-1800I20190531-1800I20190531-0245I20190529-2005I20190529-1800I20190529-0600I20190528-1800I20190528-0915I20190528-0850I20190528-0600I20190527-1805I20190527-0600I20190526-1800I20190526-0600I20190525-1800I20190525-0600I20190524-1800I20190524-0135I20190522-1800I20190522-0600I20190521-1800I20190521-0600I20190520-1805I20190520-0600R4_12_maintenance
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.java | 146 |
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; + } } |