use of org.cytoscape.property.internal.bookmark.BookmarksUtilImpl in project cytoscape-impl by cytoscape.
the class CyActivator method start.
public void start(BundleContext bc) {
CyServiceRegistrar cyServiceRegistrarRef = getService(bc, CyServiceRegistrar.class);
BookmarkReader bookmarksReader = new BookmarkReader("bookmarks", "bookmarks.xml");
BookmarksUtilImpl bookmarksUtil = new BookmarksUtilImpl(cyServiceRegistrarRef);
Properties bookmarksReaderProps = new Properties();
bookmarksReaderProps.setProperty("cyPropertyName", "bookmarks");
registerService(bc, bookmarksReader, CyProperty.class, bookmarksReaderProps);
Properties bookmarksUtilProps = new Properties();
registerService(bc, bookmarksUtil, BookmarksUtil.class, bookmarksUtilProps);
PropsReader cyApplicationCoreProperty = new PropsReader(SimpleCyProperty.CORE_PROPRERTY_NAME, "cytoscape3.props");
Properties cyApplicationCorePropertyProps = new Properties();
cyApplicationCorePropertyProps.setProperty("cyPropertyName", "cytoscape3.props");
registerAllServices(bc, cyApplicationCoreProperty, cyApplicationCorePropertyProps);
}
Aggregations