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

时间:2012-11-26 18:06:56

标签: java eclipse eclipse-juno

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

当我从Debug透视图切换到Java透视图时,我得到一个标题为“Problem Occurred”的弹出窗口。弹出窗口中的文字如下: 发生了错误。有关详细信息,请参阅错误日志。

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 个答案:

答案 0 :(得分:3)

请尝试以下步骤:

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

  2. 转到debug透视图,右键点击右上角的debug图标,然后选择reset

  3. 希望这可以解决您的问题。