Eclipse历史记录视图空白

时间:2015-07-02 09:06:55

标签: eclipse git version-control

更新到Eclipse 4.5 Mars之后,无论是从Eclipse Navigator拖动文件还是选择Team>>,历史记录视图始终保持空白。从上下文菜单中显示历史记录。我正在使用Git和CVS - 问题是一样的。

enter image description here

我在.log文件中找到了这个条目:

!ENTRY org.eclipse.ui 4 0 2015-07-03 10:09:28.308
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
    at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1270)
    at org.eclipse.ui.internal.WorkbenchPage$12.run(WorkbenchPage.java:4211)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:4207)
    at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:4187)
    at org.eclipse.team.ui.TeamUI.showHistoryFor(TeamUI.java:107)
    at org.eclipse.team.internal.ccvs.ui.actions.ShowResourceInHistoryAction$1.run(ShowResourceInHistoryAction.java:35)
    at org.eclipse.team.internal.ccvs.ui.repo.RepositoryManager.run(RepositoryManager.java:765)
    at org.eclipse.team.internal.ccvs.ui.actions.CVSAction$2.run(CVSAction.java:361)
    at org.eclipse.team.internal.ccvs.ui.actions.CVSAction$3.run(CVSAction.java:370)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.team.internal.ccvs.ui.actions.CVSAction.run(CVSAction.java:367)
    at org.eclipse.team.internal.ccvs.ui.actions.ShowResourceInHistoryAction.execute(ShowResourceInHistoryAction.java:31)
    at org.eclipse.team.internal.ccvs.ui.actions.CVSAction.run(CVSAction.java:117)
    at org.eclipse.team.internal.ui.actions.TeamAction.runWithEvent(TeamAction.java:549)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:237)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1515)

1 个答案:

答案 0 :(得分:20)

它似乎是Eclipse中的一个错误。这些错误报告引用它:

第二种方法有一种方法可以重置您的视角,使其再次工作,而不是手动添加历史记录视图。它适用于我的火星。

(来自neil mordecai的评论)

  1. 关闭所有视角。 (窗口>透视>关闭所有透视图)
  2. 重新启动eclipse(仅显示默认的JavaEE透视图) - 如果您愿意,可以添加Java ...
  3. 使用Package Explorer,选择文件和VIA SpeedBar(rh-mouse-button-select)使用Team>显示历史。
  4. 一旦以这种方式打开,历史记录将无限期地保持同步。