use of org.cytoscape.view.vizmap.gui.internal.task.RemoveVisualMappingsTask in project cytoscape-impl by cytoscape.
the class RemoveVisualMappingsCommand method execute.
@Override
@SuppressWarnings("unchecked")
public void execute(final INotification notification) {
final Set<VisualMappingFunction<?, ?>> set = (Set<VisualMappingFunction<?, ?>>) notification.getBody();
final VizMapperProxy proxy = (VizMapperProxy) getFacade().retrieveProxy(VizMapperProxy.NAME);
final VisualStyle style = proxy.getCurrentVisualStyle();
final TaskIterator iterator = new TaskIterator(new RemoveVisualMappingsTask(set, style, servicesUtil));
final DialogTaskManager taskManager = servicesUtil.get(DialogTaskManager.class);
taskManager.execute(iterator);
}
Aggregations