更改视角会导致弹出错误,调试视角不再起作用

2023-12-27

刚刚安装了 Eclipse Juno,从那时起就遇到了透视问题。除了编辑器窗口非常小并且仅限于显示的一个角落(在调试中;在 Java 透视图中没问题)之外,我在更改透视图时也会遇到错误。建议?如果我不能解决这个问题,我就会回到 Indigo。

当我从“调试”视角切换到“Java”视角时,我会看到一个标题为“出现问题”的弹出窗口。弹出窗口中的文字如下: 发生了错误。有关更多详细信息,请参阅错误日志。

org.eclipse.ui.internal.WorkbenchPage.findPerspective(Lorg/eclipse/ui/IPerspectiveDescriptor;)Lorg/eclipse/ui/internal/Perspective;

The error log shows a stacktrace which starts:
!ENTRY org.eclipse.ui.workbench 4 2 2012-11-26 12:56:50.841
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.NoSuchMethodError: org.eclipse.ui.internal.WorkbenchPage.findPerspective(Lorg/eclipse/ui/IPerspectiveDescriptor;)Lorg/eclipse/ui/internal/Perspective;
    at com.google.gdt.eclipse.suite.GdtPlugin.maybeAddNewWizardActionsToPerspective(GdtPlugin.java:302)
    at com.google.gdt.eclipse.suite.GdtPlugin.access$0(GdtPlugin.java:295)
    at com.google.gdt.eclipse.suite.GdtPlugin$1.perspectiveActivated(GdtPlugin.java:206)
    at org.eclipse.ui.internal.PerspectiveListenerList$1.run(PerspectiveListenerList.java:74)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.runtime.Platform.run(Platform.java:857)
    at org.eclipse.ui.internal.PerspectiveListenerList.fireEvent(PerspectiveListenerList.java:58)
    at org.eclipse.ui.internal.PerspectiveListenerList.firePerspectiveActivated(PerspectiveListenerList.java:72)
    at org.eclipse.ui.internal.WorkbenchWindow.firePerspectiveActivated(WorkbenchWindow.java:1260)
    at org.eclipse.ui.internal.WorkbenchPage$4.handleEvent(WorkbenchPage.java:2834)

尝试以下步骤:

  1. 开始你的eclipse与清洁选项作为eclipse -clean。如果您使用快捷方式,请转到属性并添加-clean in the target.

  2. 前往debug透视图,右键单击debug右上角的图标并选择reset.

希望这能解决您的问题。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

更改视角会导致弹出错误,调试视角不再起作用 的相关文章

随机推荐