Here you can find the source of invoke(String method)
private static void invoke(String method)
//package com.java2s; //License from project: Open Source License import java.lang.reflect.Method; import org.eclipse.core.runtime.Platform; import org.osgi.framework.Bundle; public class Main { private static final String HELP_UI_PLUGIN_ID = "org.eclipse.help.ui"; private static final String LOOP_CLASS_NAME = "org.eclipse.help.ui.internal.HelpUIEventLoop"; private static void invoke(String method) { try {/*from w w w. j ava2 s. c om*/ Bundle bundle = Platform.getBundle(HELP_UI_PLUGIN_ID); if (bundle == null) { return; } Class c = bundle.loadClass(LOOP_CLASS_NAME); Method m = c.getMethod(method, new Class[] {}); m.invoke(null, new Object[] {}); } catch (Exception e) { } } }