diff options
author | Sergey Prigogin | 2016-08-24 11:53:18 +0000 |
---|---|---|
committer | Sergey Prigogin | 2016-08-24 11:53:18 +0000 |
commit | 610d92f8ebc9c90b9edbd289596a1681a92f1913 (patch) | |
tree | d672742994b2a3b2dd6fbfc38ac287f01a3fe442 /bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/history/HistoryPageSource.java | |
parent | 197e7f029ecc8b5217ce226bac3b4379df49c115 (diff) | |
download | eclipse.platform.team-610d92f8ebc9c90b9edbd289596a1681a92f1913.tar.gz eclipse.platform.team-610d92f8ebc9c90b9edbd289596a1681a92f1913.tar.xz eclipse.platform.team-610d92f8ebc9c90b9edbd289596a1681a92f1913.zip |
Bug 491036 - Eliminate Utils.getAdapter(Object, Class) in favor of
Adapters.adapt
Change-Id: I710ccfa96a6e3c6c329a57197273d2db524f0098
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/history/HistoryPageSource.java')
-rw-r--r-- | bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/history/HistoryPageSource.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/history/HistoryPageSource.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/history/HistoryPageSource.java index d75ad2de0..77a0a8c8b 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/history/HistoryPageSource.java +++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/history/HistoryPageSource.java @@ -11,6 +11,7 @@ package org.eclipse.team.ui.history; import org.eclipse.core.resources.IResource; +import org.eclipse.core.runtime.Adapters; import org.eclipse.team.core.RepositoryProvider; import org.eclipse.team.core.history.IFileHistoryProvider; import org.eclipse.team.internal.ui.Utils; @@ -37,16 +38,16 @@ public abstract class HistoryPageSource implements IHistoryPageSource { if (provider != null) { IFileHistoryProvider fileHistoryProvider = provider.getFileHistoryProvider(); if (fileHistoryProvider != null) { - IHistoryPageSource pageSource = (IHistoryPageSource)Utils.getAdapter(fileHistoryProvider, IHistoryPageSource.class); + IHistoryPageSource pageSource = (IHistoryPageSource)Adapters.adapt(fileHistoryProvider, IHistoryPageSource.class); if (pageSource != null) return pageSource; } - IHistoryPageSource pageSource = (IHistoryPageSource)Utils.getAdapter(provider, IHistoryPageSource.class); + IHistoryPageSource pageSource = (IHistoryPageSource)Adapters.adapt(provider, IHistoryPageSource.class); if (pageSource != null) return pageSource; } } - IHistoryPageSource pageSource = (IHistoryPageSource)Utils.getAdapter(object, IHistoryPageSource.class); + IHistoryPageSource pageSource = (IHistoryPageSource)Adapters.adapt(object, IHistoryPageSource.class); return pageSource; } |