Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323171

Summary: ClassCastException in RepositoryActionHandler.getSelection
Product: [Technology] EGit Reporter: James Blackburn <jamesblackburn+eclipse>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jens.baumgart
Version: 0.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description James Blackburn CLA 2010-08-19 12:11:52 EDT
Eclipse EGit (Incubation)	0.9.0.201008180314	org.eclipse.egit.feature.group
  Eclipse JGit (Incubation)	0.9.0.201008171255 org.eclipse.jgit.feature.group
Using the nightly egit build I found a number of ClassCastExceptions in my error log (all from the same place):

Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
java.lang.ClassCastException: java.lang.Object cannot be cast to org.eclipse.jface.viewers.ISelection
at org.eclipse.egit.ui.internal.actions.RepositoryActionHandler.getSelection(RepositoryActionHandler.java:196)
at org.eclipse.egit.ui.internal.actions.RepositoryActionHandler.getSelectedResources(RepositoryActionHandler.java:280)
at org.eclipse.egit.ui.internal.actions.CompareWithHeadActionHandler.isEnabled(CompareWithHeadActionHandler.java:69)
at org.eclipse.egit.ui.internal.actions.RepositoryAction.isEnabled(RepositoryAction.java:128)
at org.eclipse.egit.ui.internal.actions.RepositoryAction.selectionChanged(RepositoryAction.java:105)
at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:206)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:277)
at org.eclipse.ui.internal.ObjectPluginAction.partClosed(ObjectPluginAction.java:49)
Comment 1 Jens Baumgart CLA 2010-08-20 04:49:01 EDT
Duplicate of bug  Bug 322963, already fixed.
Comment 2 James Blackburn CLA 2010-08-20 04:53:03 EDT
Duplicate

*** This bug has been marked as a duplicate of bug 322963 ***