Wednesday, November 07, 2012

This blog is moving

My computer blog is now moving to my new home page, http://www.lorenzobettini.it, however, all the posts already available in this blog will not be removed.

Tuesday, May 22, 2012

The JvmModelInferrer, the debugger and Xbase in Xtext 2.3

See the original post here:

The JvmModelInferrer, the debugger and Xbase in Xtext 2.3

Wednesday, May 09, 2012

Eclipse internal Web Browser in Kubuntu Precise Pangoline 12.04

This can be seen as a sort of follow-up of my previous post, Eclipse internal Web Browser in Ubuntu Lucid: after installing Kubuntu Precise Pangolin 12.04 the internal browser of Eclipse stopped working. In particular, when using Mylyn Gerrit connector (relying on OpenID authentication, which requires the eclipse internal browser) I got this error

org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)])
and indeed, by looking at the preferences corresponding to the Web browser I cannot select the internal browser:

Last time, I had solved this problem by installing the xulrunner package, but, sad to hear, this package has been dropped since Oneiric!

Fortunately, we can rely on another package:
sudo apt-get install libwebkitgtk-1.0-0
and you'll enjoy Eclipse internal web browser again! :)

Friday, February 03, 2012

Closing the Eclipse Welcome screen programmatically

When writing Junit plugin tests in Eclipse I wanted to close the welcome page programmatically before starting the tests; looks like it's pretty easy :) Just use this @BeforeClass static method and you'll be fine!


@BeforeClass
public static void closeWelcome() {
final IIntroManager introManager =
PlatformUI.getWorkbench().getIntroManager();
IIntroPart part = introManager.getIntro();
introManager.closeIntro(part);
}