use of org.freeplane.core.ui.ExampleFileFilter in project freeplane by freeplane.
the class Activator method registerMindMapModeExtension.
private void registerMindMapModeExtension(final BundleContext context) {
final Hashtable<String, String[]> props = new Hashtable<String, String[]>();
props.put("mode", new String[] { MModeController.MODENAME });
context.registerService(IModeControllerExtensionProvider.class.getName(), new IModeControllerExtensionProvider() {
public void installExtension(ModeController modeController) {
final ExportController exportController = ExportController.getController(modeController);
exportController.addExportEngine(new ExampleFileFilter("pdf", TextUtils.getText("export_pdf_text")), new ExportPdf());
exportController.addExportEngine(new ExampleFileFilter("svg", TextUtils.getText("export_svg_text")), new ExportSvg());
final ViewerController extension = (ViewerController) modeController.getExtension(ViewerController.class);
extension.addFactory(new SvgViewerFactory());
}
}, props);
}
Aggregations