Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2016-04-04 09:42:56 -0400
committerDani Megert2016-04-04 09:42:56 -0400
commit3a1e0791f4066352f594b0b85201546943683fdb (patch)
tree0c8e586761580a07bd4934c31420e86ec3280d08
parent236f56cce34383388c3e3aa1fbc8c6c161ede465 (diff)
downloadegit-3a1e0791f4066352f594b0b85201546943683fdb.tar.gz
egit-3a1e0791f4066352f594b0b85201546943683fdb.tar.xz
egit-3a1e0791f4066352f594b0b85201546943683fdb.zip
Fix compile error in GitCompareFileRevisionEditorInput
Change-Id: I63bf2e17b39b1c511fb49293ec92d98621ff0e26 Signed-off-by: Dani Megert <Daniel_Megert@ch.ibm.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/revision/GitCompareFileRevisionEditorInput.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/revision/GitCompareFileRevisionEditorInput.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/revision/GitCompareFileRevisionEditorInput.java
index eafa1ce9f..ae62d9c40 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/revision/GitCompareFileRevisionEditorInput.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/revision/GitCompareFileRevisionEditorInput.java
@@ -2,6 +2,7 @@
* Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com>
* Copyright (C) 2008, Roger C. Soares <rogersoares@intelinet.com.br>
* Copyright (C) 2013, Robin Stocker <robin@nibor.org>
+ * Copyright (C) 2016, Daniel Megert <daniel_megert@ch.ibm.com>
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -52,7 +53,6 @@ import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.graphics.Image;
import org.eclipse.team.core.history.IFileRevision;
-import org.eclipse.team.internal.ui.Utils;
import org.eclipse.team.internal.ui.synchronize.EditableSharedDocumentAdapter.ISharedDocumentAdapterListener;
import org.eclipse.team.internal.ui.synchronize.LocalResourceSaveableComparison;
import org.eclipse.team.internal.ui.synchronize.LocalResourceTypedElement;
@@ -658,8 +658,8 @@ public class GitCompareFileRevisionEditorInput extends SaveableCompareEditorInpu
private ISaveablesLifecycleListener getSaveablesLifecycleListener(
IWorkbenchPart part) {
- ISaveablesLifecycleListener listener = (ISaveablesLifecycleListener) Utils
- .getAdapter(part, ISaveablesLifecycleListener.class);
+ ISaveablesLifecycleListener listener = AdapterUtils.adapt(part,
+ ISaveablesLifecycleListener.class);
if (listener == null)
listener = CommonUtils.getService(part.getSite(), ISaveablesLifecycleListener.class);
return listener;

Back to the top