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

SpringSource Issue Tracker | Martin Lippert | 5 years ago
  1. 0

    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.internal.handlers.HandlerProxy.setEnabled(HandlerProxy.java:232) at org.eclipse.core.commands.Command.setEnabled(Command.java:857) 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.ui.menus.CommandContributionItem$1.bindingManagerChanged(CommandContributionItem.java:998) 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.jface.bindings.BindingManager.contextManagerChanged(BindingManager.java:689) 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.core.commands.contexts.ContextManager.deferUpdates(ContextManager.java:83) 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.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:290) at org.eclipse.ui.AbstractSourceProvider.fireSourceChanged(AbstractSourceProvider.java:99) 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.services.WorkbenchSourceProvider$2.windowDeactivated(WorkbenchSourceProvider.java:270) at org.eclipse.ui.internal.Workbench$15.run(Workbench.java:1021) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.Workbench.fireWindowDeactivated(Workbench.java:1019) at org.eclipse.ui.internal.WorkbenchWindow$28.shellDeactivated(WorkbenchWindow.java:3162) 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.widgets.Display.filterProc(Display.java:1543) 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.swt.widgets.Display.readAndDispatch(Display.java:3207) 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.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 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 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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) at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

    SpringSource Issue Tracker | 5 years ago | Martin Lippert
    java.lang.ClassCastException: org.eclipse.egit.ui.internal.GitCompareFileRevisionEditorInput cannot be cast to org.eclipse.ui.part.FileEditorInput
  2. 0

    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.internal.handlers.HandlerProxy.setEnabled(HandlerProxy.java:232) at org.eclipse.core.commands.Command.setEnabled(Command.java:857) 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.ui.menus.CommandContributionItem$1.bindingManagerChanged(CommandContributionItem.java:998) 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.jface.bindings.BindingManager.contextManagerChanged(BindingManager.java:689) 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.core.commands.contexts.ContextManager.deferUpdates(ContextManager.java:83) 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.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:290) at org.eclipse.ui.AbstractSourceProvider.fireSourceChanged(AbstractSourceProvider.java:99) 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.services.WorkbenchSourceProvider$2.windowDeactivated(WorkbenchSourceProvider.java:270) at org.eclipse.ui.internal.Workbench$15.run(Workbench.java:1021) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.Workbench.fireWindowDeactivated(Workbench.java:1019) at org.eclipse.ui.internal.WorkbenchWindow$28.shellDeactivated(WorkbenchWindow.java:3162) 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.widgets.Display.filterProc(Display.java:1543) 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.swt.widgets.Display.readAndDispatch(Display.java:3207) 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.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 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 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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) at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

    SpringSource Issue Tracker | 5 years ago | Martin Lippert
    java.lang.ClassCastException: org.eclipse.egit.ui.internal.GitCompareFileRevisionEditorInput cannot be cast to org.eclipse.ui.part.FileEditorInput
  3. 0

    BOS Studio 7.0.1 error while creating Validator using Groovy Expression in a Form or Field | Bonitasoft Community

    bonitasoft.com | 1 year ago
    java.lang.ClassCastException: org.eclipse.ui.part.FileEditorInput cannot be cast to org.eclipse.emf.ecore.EObject
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.ClassCastException: org.eclipse.ui.part.FileEditorInput cannot be cast to org.eclipse.linuxtools.systemtap.ui.editor.PathEditorInput

    Eclipse Bugzilla | 7 years ago | jensseidel
    java.lang.ClassCastException: org.eclipse.ui.part.FileEditorInput cannot be cast to org.eclipse.linuxtools.systemtap.ui.editor.PathEditorInput
  6. 0

    ClassCastException in DownloadSourcesActionDelegate.setActiveEditor

    Eclipse Bugzilla | 1 year ago | error-reports-inbox
    java.lang.ClassCastException: org.eclipse.ui.part.FileEditorInput cannot be cast to org.eclipse.jdt.internal.ui.javaeditor.IClassFileEditorInput

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. com.springsource.sts
      OpenNamespaceConfigWizardCommandHandler.setEnabled
      1. com.springsource.sts.internal.ide.ui.actions.OpenNamespaceConfigWizardCommandHandler.getFile(OpenNamespaceConfigWizardCommandHandler.java:94)
      2. com.springsource.sts.internal.ide.ui.actions.OpenNamespaceConfigWizardCommandHandler.setEnabled(OpenNamespaceConfigWizardCommandHandler.java:79)
      2 frames
    3. Workbench
      HandlerProxy.setEnabled
      1. org.eclipse.ui.internal.handlers.HandlerProxy.setEnabled(HandlerProxy.java:232)
      1 frame
    4. Commands
      Command.setEnabled
      1. org.eclipse.core.commands.Command.setEnabled(Command.java:857)
      1 frame
    5. Workbench
      CommandContributionItem$1.bindingManagerChanged
      1. org.eclipse.ui.menus.CommandContributionItem.isEnabled(CommandContributionItem.java:977)
      2. org.eclipse.ui.menus.CommandContributionItem.updateMenuItem(CommandContributionItem.java:628)
      3. org.eclipse.ui.menus.CommandContributionItem.update(CommandContributionItem.java:580)
      4. org.eclipse.ui.menus.CommandContributionItem.update(CommandContributionItem.java:569)
      5. org.eclipse.ui.menus.CommandContributionItem$1.bindingManagerChanged(CommandContributionItem.java:998)
      5 frames
    6. JFace
      BindingManager.contextManagerChanged
      1. org.eclipse.jface.bindings.BindingManager.fireBindingManagerChanged(BindingManager.java:900)
      2. org.eclipse.jface.bindings.BindingManager.setActiveBindings(BindingManager.java:2176)
      3. org.eclipse.jface.bindings.BindingManager.recomputeBindings(BindingManager.java:1742)
      4. org.eclipse.jface.bindings.BindingManager.contextManagerChanged(BindingManager.java:689)
      4 frames
    7. Commands
      ContextManager.deferUpdates
      1. org.eclipse.core.commands.contexts.ContextManager.fireContextManagerChanged(ContextManager.java:165)
      2. org.eclipse.core.commands.contexts.ContextManager.setEventCaching(ContextManager.java:324)
      3. org.eclipse.core.commands.contexts.ContextManager.deferUpdates(ContextManager.java:83)
      3 frames
    8. Workbench
      ExpressionAuthority.sourceChanged
      1. org.eclipse.ui.internal.contexts.ContextAuthority.sourceChanged(ContextAuthority.java:673)
      2. org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:310)
      3. org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:290)
      3 frames
    9. Eclipse UI
      AbstractSourceProvider.fireSourceChanged
      1. org.eclipse.ui.AbstractSourceProvider.fireSourceChanged(AbstractSourceProvider.java:99)
      1 frame
    10. Workbench
      WorkbenchSourceProvider$2.windowDeactivated
      1. org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkActivePart(WorkbenchSourceProvider.java:401)
      2. org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkActivePart(WorkbenchSourceProvider.java:300)
      3. org.eclipse.ui.internal.services.WorkbenchSourceProvider$2.windowDeactivated(WorkbenchSourceProvider.java:270)
      3 frames
    11. Eclipse UI
      Workbench$15.run
      1. org.eclipse.ui.internal.Workbench$15.run(Workbench.java:1021)
      1 frame
    12. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    13. Eclipse UI
      WorkbenchWindow$28.shellDeactivated
      1. org.eclipse.ui.internal.Workbench.fireWindowDeactivated(Workbench.java:1019)
      2. org.eclipse.ui.internal.WorkbenchWindow$28.shellDeactivated(WorkbenchWindow.java:3162)
      2 frames
    14. RWT
      Display.filterProc
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:111)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      4. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
      5. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263)
      6. org.eclipse.swt.widgets.Shell.filterProc(Shell.java:748)
      7. org.eclipse.swt.widgets.Display.filterProc(Display.java:1543)
      7 frames
    15. org.eclipse.swt
      OS.g_main_context_iteration
      1. org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
      2. org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2276)
      2 frames
    16. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207)
      1 frame
    17. Eclipse UI
      Workbench$7.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
      4. org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
      4 frames
    18. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    19. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
      1 frame
    20. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    21. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
      1 frame
    22. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    23. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      4 frames
    24. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    25. Equinox
      Main.run
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      3 frames