Twitter github

Random Eclipse Tip

I was clearing out my workspace this morning and noticed a sample plug-in left over from the Eclipse in Motion: Raleigh code camp. The question asked at the code camp was how to popup a dialog when the Eclipse workbench starts. The answer lies in the org.eclipse.ui.startup extension point.

Implement the IStartup interface, for example:

public class MyStartup implements IStartup {

public void earlyStartup() {
Display.getDefault().syncExec(new Runnable() {
public void run() {
MessageDialog.openInformation(
Display.getDefault().getActiveShell(), “Title”, “Message”);
}
});
}

}

I also want to mention that this will force your plugin to activate on startup which isn’t a great thing to do.