diff options
author | Markus Keller | 2014-08-12 12:55:43 +0000 |
---|---|---|
committer | Markus Keller | 2014-08-12 12:55:43 +0000 |
commit | 5d4ea367b42aa3d2a875fcc86f4ccf6ef74a62fe (patch) | |
tree | bed2fa96baa6ebd7adb3902b9095aefd38b6e583 /org.eclipse.ui.console | |
parent | c37aa73ffdd7a1497c2d8729ffb08e5cd35b1cc1 (diff) | |
download | eclipse.platform.debug-5d4ea367b42aa3d2a875fcc86f4ccf6ef74a62fe.tar.gz eclipse.platform.debug-5d4ea367b42aa3d2a875fcc86f4ccf6ef74a62fe.tar.xz eclipse.platform.debug-5d4ea367b42aa3d2a875fcc86f4ccf6ef74a62fe.zip |
Removed unnecessary casts from Bug 430981: Add type information to IServiceLocator.getService
Diffstat (limited to 'org.eclipse.ui.console')
-rw-r--r-- | org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleView.java b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleView.java index 76bb889ab..adf1d429c 100644 --- a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleView.java +++ b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleView.java @@ -649,7 +649,7 @@ public class ConsoleView extends PageBookView implements IConsoleView, IConsoleL public void partActivated(IWorkbenchPartReference partRef) { if (isThisPart(partRef)) { fActive = true; - IContextService contextService = (IContextService)getSite().getService(IContextService.class); + IContextService contextService = getSite().getService(IContextService.class); if(contextService != null) { fActivatedContext = contextService.activateContext(IConsoleConstants.ID_CONSOLE_VIEW); activateParticipants(fActiveConsole); @@ -669,7 +669,7 @@ public class ConsoleView extends PageBookView implements IConsoleView, IConsoleL public void partDeactivated(IWorkbenchPartReference partRef) { if (isThisPart(partRef)) { fActive = false; - IContextService contextService = (IContextService)getSite().getService(IContextService.class); + IContextService contextService = getSite().getService(IContextService.class); if(contextService != null) { contextService.deactivateContext(fActivatedContext); deactivateParticipants(fActiveConsole); |