Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323171 - ClassCastException in RepositoryActionHandler.getSelection
Summary: ClassCastException in RepositoryActionHandler.getSelection
Status: RESOLVED DUPLICATE of bug 322963
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-19 12:11 EDT by James Blackburn CLA
Modified: 2010-08-20 04:53 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***