Search in sources :

Example 1 with TaskFactoryTunableAction

use of org.cytoscape.internal.task.TaskFactoryTunableAction in project cytoscape-impl by cytoscape.

the class CytoscapeMenuPopulator method addFactory.

private void addFactory(TaskFactory factory, Map<String, String> props) {
    CyAction action;
    if (props.containsKey(ServiceProperties.ENABLE_FOR))
        action = new TaskFactoryTunableAction(factory, props, serviceRegistrar);
    else
        action = new TaskFactoryTunableAction(serviceRegistrar, factory, props);
    addAction(action, factory, props);
}
Also used : CytoPanelTaskFactoryTunableAction(org.cytoscape.internal.task.CytoPanelTaskFactoryTunableAction) TaskFactoryTunableAction(org.cytoscape.internal.task.TaskFactoryTunableAction) CyAction(org.cytoscape.application.swing.CyAction)

Example 2 with TaskFactoryTunableAction

use of org.cytoscape.internal.task.TaskFactoryTunableAction in project cytoscape-impl by cytoscape.

the class NetworkMediator method addFactory.

// // Private Methods // //
@SuppressWarnings({ "unchecked", "rawtypes" })
private void addFactory(final TaskFactory factory, final Map props) {
    final CyAction action;
    if (props.containsKey(ServiceProperties.ENABLE_FOR))
        action = new TaskFactoryTunableAction(factory, props, serviceRegistrar);
    else
        action = new TaskFactoryTunableAction(serviceRegistrar, factory, props);
    popupActionMap.put(factory, action);
}
Also used : TaskFactoryTunableAction(org.cytoscape.internal.task.TaskFactoryTunableAction) AbstractCyAction(org.cytoscape.application.swing.AbstractCyAction) CyAction(org.cytoscape.application.swing.CyAction)

Aggregations

CyAction (org.cytoscape.application.swing.CyAction)2 TaskFactoryTunableAction (org.cytoscape.internal.task.TaskFactoryTunableAction)2 AbstractCyAction (org.cytoscape.application.swing.AbstractCyAction)1 CytoPanelTaskFactoryTunableAction (org.cytoscape.internal.task.CytoPanelTaskFactoryTunableAction)1