Search in sources :

Example 1 with BookmarkReader

use of org.cytoscape.property.internal.bookmark.BookmarkReader 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);
}
Also used : BookmarkReader(org.cytoscape.property.internal.bookmark.BookmarkReader) BookmarksUtilImpl(org.cytoscape.property.internal.bookmark.BookmarksUtilImpl) Properties(java.util.Properties) CyServiceRegistrar(org.cytoscape.service.util.CyServiceRegistrar)

Aggregations

Properties (java.util.Properties)1 BookmarkReader (org.cytoscape.property.internal.bookmark.BookmarkReader)1 BookmarksUtilImpl (org.cytoscape.property.internal.bookmark.BookmarksUtilImpl)1 CyServiceRegistrar (org.cytoscape.service.util.CyServiceRegistrar)1