Javadoc Hover突然爆发了日蚀月神

时间:2014-09-07 10:37:59

标签: eclipse

我在一周前安装了eclipse luna并且每天都在工作,直到javadoc昨天破了。

当我将鼠标悬停在类或方法上时,弹出窗口会显示正确的尺寸,但它是空白的。

这个问题发生在我编写的类中,来自maven依赖项的类和来自jdk的类(如String)。

我重新启动了eclipse,计算机,它仍然无效。

我没有发现任何可能造成这种情况的不同之处。

我查看了构建路径,每个jar都有源路径和javadoc路径。

javadoc视图也是空的。

我不知道该怎么办。没有javadoc徘徊,我无法工作。

编辑: 在错误视图中,我看到第一次尝试悬停时,我在“org.eclipse.jdt.ui”上收到内部错误:

java.net.MalformedURLException: unknown protocol: res
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at org.eclipse.jdt.internal.ui.viewsupport.JavaElementLinks$1.changing(JavaElementLinks.java:300)
    at org.eclipse.swt.browser.IE$7.handleEvent(IE.java:510)
    at org.eclipse.swt.ole.win32.OleEventTable.sendEvent(OleEventTable.java:55)
    at org.eclipse.swt.ole.win32.OleEventSink.notifyListener(OleEventSink.java:152)
    at org.eclipse.swt.ole.win32.OleEventSink.Invoke(OleEventSink.java:120)
    at org.eclipse.swt.ole.win32.OleEventSink.access$1(OleEventSink.java:97)
    at org.eclipse.swt.ole.win32.OleEventSink$1.method6(OleEventSink.java:71)
    at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
    at org.eclipse.jface.internal.text.html.BrowserInformationControl.setVisible(BrowserInformationControl.java:351)
    at org.eclipse.jface.text.AbstractInformationControlManager.showInformationControl(AbstractInformationControlManager.java:1270)
    at org.eclipse.jface.text.TextViewerHoverManager.showInformationControl(TextViewerHoverManager.java:283)
    at org.eclipse.jface.text.AbstractInformationControlManager.internalShowInformationControl(AbstractInformationControlManager.java:1221)
    at org.eclipse.jface.text.AbstractInformationControlManager.presentInformation(AbstractInformationControlManager.java:1150)
    at org.eclipse.jface.text.AbstractHoverInformationControlManager.presentInformation(AbstractHoverInformationControlManager.java:902)
    at org.eclipse.jface.text.TextViewerHoverManager.doPresentInformation(TextViewerHoverManager.java:243)
    at org.eclipse.jface.text.TextViewerHoverManager$5.run(TextViewerHoverManager.java:233)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
    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:382)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
    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:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

编辑2:它仍然不起作用!

我卸载了eclipse并重新安装了一个新的,我擦了工作区,没有任何变化。

1 个答案:

答案 0 :(得分:0)

问题出在@Pavel Horal所说的那样 您应该将浏览器切换到另一个,默认浏览器是IE,修改eclipse.ini文件eclipse.org/swt/faq.php#browserspecifydefault

或只是添加

  

-Dorg.eclipse.swt.browser.DefaultType = Mozilla浏览器

在eclipse.ini文件的末尾。

或者,如果您对eclipse的UI界面更熟悉,可以使用此帮助更改默认浏览器HELP