use of org.freeplane.main.osgi.IControllerExtensionProvider in project freeplane by freeplane.
the class Activator method start.
public void start(final BundleContext context) throws Exception {
registerClasspathUrlHandler(context);
context.registerService(IControllerExtensionProvider.class.getName(), new IControllerExtensionProvider() {
public void installExtension(Controller controller) {
WorkspaceController.install(controller);
UserAccountController.install(controller);
LogUtils.info("Workspace controller installed.");
startControllerExtensions(context, controller);
}
}, null);
final Hashtable<String, String[]> props = new Hashtable<String, String[]>();
// WORKSPACE - todo(low): list all modes from freeplane controller
props.put("mode", new String[] { MModeController.MODENAME });
context.registerService(IModeControllerExtensionProvider.class.getName(), new IModeControllerExtensionProvider() {
public void installExtension(ModeController modeController) {
addToQuitChain();
WorkspaceController.getController().installMode(modeController);
startPluginServices(context, modeController);
WorkspaceController.getController().startModeExtension(modeController);
}
}, props);
}
use of org.freeplane.main.osgi.IControllerExtensionProvider in project freeplane by freeplane.
the class Activator method start.
/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
*/
public void start(final BundleContext context) throws Exception {
parentLogger = Logger.getAnonymousLogger().getParent();
handler = new ReportGenerator();
parentLogger.addHandler(handler);
context.registerService(IControllerExtensionProvider.class.getName(), new IControllerExtensionProvider() {
public void installExtension(Controller controller) {
handler.setBugReportListener(new ManualBugReporter());
}
}, null);
}
Aggregations