java.lang.ClassCastException: org.eclipse.egit.ui.internal.GitCompareFileRevisionEditorInput cannot be cast to org.eclipse.ui.part.FileEditorInput

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via SpringSource Issue Tracker by Martin Lippert, 1 year ago
org.eclipse.egit.ui.internal.GitCompareFileRevisionEditorInput cannot be cast to org.eclipse.ui.part.FileEditorInput
via SpringSource Issue Tracker by Martin Lippert, 1 year ago
org.eclipse.egit.ui.internal.GitCompareFileRevisionEditorInput cannot be cast to org.eclipse.ui.part.FileEditorInput
java.lang.ClassCastException: org.eclipse.egit.ui.internal.GitCompareFileRevisionEditorInput cannot be cast to org.eclipse.ui.part.FileEditorInput
at com.springsource.sts.internal.ide.ui.actions.OpenNamespaceConfigWizardCommandHandler.getFile(OpenNamespaceConfigWizardCommandHandler.java:94)
at com.springsource.sts.internal.ide.ui.actions.OpenNamespaceConfigWizardCommandHandler.setEnabled(OpenNamespaceConfigWizardCommandHandler.java:79)
at org.eclipse.ui.menus.CommandContributionItem.isEnabled(CommandContributionItem.java:977)
at org.eclipse.ui.menus.CommandContributionItem.updateMenuItem(CommandContributionItem.java:628)
at org.eclipse.ui.menus.CommandContributionItem.update(CommandContributionItem.java:580)
at org.eclipse.ui.menus.CommandContributionItem.update(CommandContributionItem.java:569)
at org.eclipse.jface.bindings.BindingManager.fireBindingManagerChanged(BindingManager.java:900)
at org.eclipse.jface.bindings.BindingManager.setActiveBindings(BindingManager.java:2176)
at org.eclipse.jface.bindings.BindingManager.recomputeBindings(BindingManager.java:1742)
at org.eclipse.core.commands.contexts.ContextManager.fireContextManagerChanged(ContextManager.java:165)
at org.eclipse.core.commands.contexts.ContextManager.setEventCaching(ContextManager.java:324)
at org.eclipse.ui.internal.contexts.ContextAuthority.sourceChanged(ContextAuthority.java:673)
at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:310)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkActivePart(WorkbenchSourceProvider.java:401)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkActivePart(WorkbenchSourceProvider.java:300)
at org.eclipse.ui.internal.Workbench.fireWindowDeactivated(Workbench.java:1019)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:111)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263)
at org.eclipse.swt.widgets.Shell.filterProc(Shell.java:748)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2276)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.