Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2014-12-22 22:47:43 +0000
committerMarc-Andre Laperle2014-12-23 16:47:18 +0000
commit780db5f29a8622cdf6cba69adb8f8b6849a47182 (patch)
treebe7dd8d60aac0af90548f52e6f69a663187442c9
parentf54a0debce0173d55b02dab51acdd4bf0eda8913 (diff)
downloadorg.eclipse.linuxtools-780db5f29a8622cdf6cba69adb8f8b6849a47182.tar.gz
org.eclipse.linuxtools-780db5f29a8622cdf6cba69adb8f8b6849a47182.tar.xz
org.eclipse.linuxtools-780db5f29a8622cdf6cba69adb8f8b6849a47182.zip
Fix more cast warnings (errors) when targetting 4.5
Change-Id: Ie07f48a90ca0f17301ca25ed7ebbdd25252b5a7d Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Reviewed-on: https://git.eclipse.org/r/38699 Tested-by: Hudson CI
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/SDView.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/SDView.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/SDView.java
index 402865e873..09cb7b346e 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/SDView.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/SDView.java
@@ -1197,8 +1197,8 @@ public class SDView extends ViewPart implements IPartListener {
@Override
public void partActivated(IWorkbenchPart part) {
if (part == this) {
- final IHandlerService hs = (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
- fPrintHandlerActivation = hs.activateHandler(ActionFactory.PRINT.getCommandId(), fPrintActionHandler);
+ final Object service = PlatformUI.getWorkbench().getService(IHandlerService.class);
+ fPrintHandlerActivation = ((IHandlerService) service).activateHandler(ActionFactory.PRINT.getCommandId(), fPrintActionHandler);
}
}
@@ -1222,8 +1222,8 @@ public class SDView extends ViewPart implements IPartListener {
@Override
public void partDeactivated(IWorkbenchPart part) {
if (part == this && fPrintHandlerActivation != null) {
- final IHandlerService hs = (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
- hs.deactivateHandler(fPrintHandlerActivation);
+ final Object service = PlatformUI.getWorkbench().getService(IHandlerService.class);
+ ((IHandlerService) service).deactivateHandler(fPrintHandlerActivation);
}
}

Back to the top