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!

public static void closeWelcome() {
final IIntroManager introManager =
IIntroPart part = introManager.getIntro();