plugin/src/com/carrotgarden/eclipse/space/menu/InvokerUtil.java
/**
	 * invoke default action on plugin activation
	 */
invoke default action on plugin activation
invoke default action on plugin activation
public static void invokeDefaultAction() {
		String className = MainPage.defaultClass();
		boolean invokeAction = MainPage.defaultInvoke();
		if (invokeAction) {
			Plugin.log.info("Default action enabled: class=" + className);
			try {
				Bundle bundle = InvokerUtil.bundleAquire();
				try {
					ClassLoader scriptLoader = bundle.adapt(BundleWiring.class).getClassLoader();
					Class<?> scriptClass = scriptLoader.loadClass(className);
					methodInvoke(scriptClass);
				} catch (Throwable e) {
					throw e;
				} finally {
					BundleUtil.bundleRelease(bundle);
				}
			} catch (Throwable e) {
				Plugin.log.error("Default invoke failure. className=" + className, e);
			}
		} else {
			Plugin.log.info("Default action disabled");
		}
	}
public static void invokeDefaultAction ( ) { String className = MainPage . defaultClass ( ) ; boolean invokeAction = MainPage . defaultInvoke ( ) ; if ( invokeAction ) { Plugin . log . info ( "Default action enabled: class=" + className ) ; try { Bundle bundle = InvokerUtil . bundleAquire ( ) ; try { ClassLoader scriptLoader = bundle . adapt ( BundleWiring . class ) . getClassLoader ( ) ; Class < ? > scriptClass = scriptLoader . loadClass ( className ) ; methodInvoke ( scriptClass ) ; } catch ( Throwable e ) { throw e ; } finally { BundleUtil . bundleRelease ( bundle ) ; } } catch ( Throwable e ) { Plugin . log . error ( "Default invoke failure. className=" + className , e ) ; } } else { Plugin . log . info ( "Default action disabled" ) ; } }
invoke default action on plugin activation
invoke default action on plugin activation