Search in sources :

Example 1 with ControlPanel

use of org.cytoscape.view.manual.internal.control.view.ControlPanel in project cytoscape-impl by cytoscape.

the class CyActivator method start.

@Override
public void start(BundleContext bc) {
    final CyServiceRegistrar serviceRegistrar = getService(bc, CyServiceRegistrar.class);
    final CySwingApplication cySwingApplicationServiceRef = getService(bc, CySwingApplication.class);
    final CyApplicationManager cyApplicationManagerServiceRef = getService(bc, CyApplicationManager.class);
    final CyNetworkViewManager cyNetworkViewManagerServiceRef = getService(bc, CyNetworkViewManager.class);
    invokeOnEDTAndWait(() -> {
        controlPanel = new ControlPanel(serviceRegistrar);
        controlPanelAction = new ControlPanelAction(controlPanel, cySwingApplicationServiceRef, cyApplicationManagerServiceRef, cyNetworkViewManagerServiceRef);
    }, logger);
    registerAllServices(bc, controlPanelAction, new Properties());
    registerAllServices(bc, controlPanel, new Properties());
}
Also used : CyApplicationManager(org.cytoscape.application.CyApplicationManager) CySwingApplication(org.cytoscape.application.swing.CySwingApplication) CyNetworkViewManager(org.cytoscape.view.model.CyNetworkViewManager) ControlPanel(org.cytoscape.view.manual.internal.control.view.ControlPanel) Properties(java.util.Properties) CyServiceRegistrar(org.cytoscape.service.util.CyServiceRegistrar) ControlPanelAction(org.cytoscape.view.manual.internal.control.actions.ControlPanelAction)

Aggregations

Properties (java.util.Properties)1 CyApplicationManager (org.cytoscape.application.CyApplicationManager)1 CySwingApplication (org.cytoscape.application.swing.CySwingApplication)1 CyServiceRegistrar (org.cytoscape.service.util.CyServiceRegistrar)1 ControlPanelAction (org.cytoscape.view.manual.internal.control.actions.ControlPanelAction)1 ControlPanel (org.cytoscape.view.manual.internal.control.view.ControlPanel)1 CyNetworkViewManager (org.cytoscape.view.model.CyNetworkViewManager)1