summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorDariusz Luksza2010-08-12 14:20:01 (EDT)
committer Dariusz Luksza2010-08-12 14:21:10 (EDT)
commit1e44e13437067e76dd851ddb4e652f9b0f0ff0c4 (patch)
tree2eaaefa75c959f3575b5ecdf36d56a4fccd0ceb3
parentbef6d0ea88204c9f6645ff1b4c67c9241c7f559e (diff)
downloadegit-1e44e13437067e76dd851ddb4e652f9b0f0ff0c4.zip
egit-1e44e13437067e76dd851ddb4e652f9b0f0ff0c4.tar.gz
egit-1e44e13437067e76dd851ddb4e652f9b0f0ff0c4.tar.bz2
Fix ClassCastException in GitModelSynchronizerefs/changes/96/1296/1
Quick fix for ClassCastException in GitModelSynchronize. Change-Id: Ia2765b0b3b82470c8d8ee016a96ee7859db9390c Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/GitModelSynchronize.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/GitModelSynchronize.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/GitModelSynchronize.java
index cfc2a72..212e677 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/GitModelSynchronize.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/GitModelSynchronize.java
@@ -26,7 +26,6 @@ import org.eclipse.team.core.mapping.provider.SynchronizationContext;
import org.eclipse.team.core.subscribers.SubscriberScopeManager;
import org.eclipse.team.ui.TeamUI;
import org.eclipse.team.ui.synchronize.ISynchronizeParticipant;
-import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
@@ -73,7 +72,7 @@ public class GitModelSynchronize {
new ISynchronizeParticipant[] { participant });
IWorkbenchWindow window = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow();
- participant.run((IWorkbenchPart) window.getActivePage());
+ participant.run(window.getActivePage().getActivePart());
}
/**