Reset the layout/views setting of eclipse

It’s the second time to get such a bug of eclipse.

It seems that eclipse can’t work fine with the newer/older version of XulRunner other than 1.9.* in many distribution of Linux. Ubuntu is in the list.

The result is that I can’t open the javadoc view of eclipse. Everytime when I click the tab, a error dialog will pop. Then I switch to other tab and go on coding. But this time I’m not so lucky. I just close the eclipse. It got crazy then. Eclipse can’t startup any more. Eclipse can’t startup because it want to restore the last state. But it failed to open the javadoc view, and then break.

Too many article about this problem from Google. The keyword can be found at %workspace%/.metadata/.log.

SWTError, XPCOM

Some solutions looks good, and proved by the follow comments. However, none of them works on my machine.

Surely, I can find a way for me. I just need to reset the layout of eclipse. Then Google tell us it’s controlled by this file, %workspace%/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml. I just delete it and then everything works fine now.

In addition, I also remove the javadoc view to prevent the accident happen. This can’t be done from eclipse UI because XulRunner problem. However, you can do it in the config file. Open the workbench.xml, and delete this one

<view id=”org.eclipse.jdt.ui.JavadocView”/>

on December 1st, 2009 | No Comments »

AideRSS Google Reader Integration的Bug

这两天Firefox出现了一系列问题,刚才终于找到了罪魁祸首AideRSS Google Reader Integration。它会导致:

  1. Greasemonkey的管理窗口无法打开。
  2. Firefox退出后进程不会结束。

on September 5th, 2008 | No Comments »