【问题标题】:Changing perspective causes popup error, debug perspective no longer functional更改视角会导致弹出错误,调试视角不再起作用
【发布时间】:2012-11-14 06:27:07
【问题描述】:

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

当我从 Debug 透视图切换到 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)

【问题讨论】:

    标签: java eclipse eclipse-juno


    【解决方案1】:

    尝试以下步骤:

    1. 使用 eclipse -clean 的 clean 选项启动您的 eclipse。如果您使用的是快捷方式,请转到属性并在target 中添加-clean

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

    希望这能解决您的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-06
      • 1970-01-01
      • 2015-02-23
      • 2018-12-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多