Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/typehierarchy/THViewPart.java')
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/typehierarchy/THViewPart.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/typehierarchy/THViewPart.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/typehierarchy/THViewPart.java
index d2e3ad19811..6cbf681c730 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/typehierarchy/THViewPart.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/typehierarchy/THViewPart.java
@@ -239,7 +239,7 @@ public class THViewPart extends ViewPart implements ITHModelPresenter {
setMessage(Messages.THViewPart_instruction);
initializeActionStates();
- IContextService ctxService = (IContextService) getSite().getService(IContextService.class);
+ IContextService ctxService = getSite().getService(IContextService.class);
if (ctxService != null) {
fContextActivation= ctxService.activateContext(CUIPlugin.CVIEWS_SCOPE);
}
@@ -250,7 +250,7 @@ public class THViewPart extends ViewPart implements ITHModelPresenter {
@Override
public void dispose() {
if (fContextActivation != null) {
- IContextService ctxService = (IContextService)getSite().getService(IContextService.class);
+ IContextService ctxService = getSite().getService(IContextService.class);
if (ctxService != null) {
ctxService.deactivateContext(fContextActivation);
}
@@ -998,7 +998,7 @@ public class THViewPart extends ViewPart implements ITHModelPresenter {
return (ICElement) cand;
}
if (cand instanceof IAdaptable) {
- ICElement elem= (ICElement) ((IAdaptable) cand).getAdapter(ICElement.class);
+ ICElement elem= ((IAdaptable) cand).getAdapter(ICElement.class);
if (elem != null) {
return elem;
}
@@ -1133,7 +1133,7 @@ public class THViewPart extends ViewPart implements ITHModelPresenter {
@Override
public IWorkbenchSiteProgressService getProgressService() {
- return (IWorkbenchSiteProgressService) getSite().getAdapter(IWorkbenchSiteProgressService.class);
+ return getSite().getAdapter(IWorkbenchSiteProgressService.class);
}
private static class CopyTypeHierarchyAction extends CopyTreeAction {

Back to the top