use of org.cytoscape.view.manual.internal.control.actions.ControlPanelAction 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());
}
Aggregations