use of org.opennms.netmgt.vaadin.core.InfoDialog in project opennms by OpenNMS.
the class AbstractAnalysisOperation method execute.
@Override
public void execute(List<VertexRef> targets, OperationContext operationContext) {
final List<AbstractBusinessServiceVertex> vertices = getVertices(targets);
final BusinessServiceStateMachine stateMachine = SimulationAwareStateMachineFactory.createStateMachine(businessServiceManager, operationContext.getGraphContainer().getCriteria());
final Set<GraphVertex> graphVerticesToFocus = Sets.newHashSet();
final BusinessServiceVertexVisitor<Collection<GraphVertex>> visitor = getVisitorForVerticesToFocus(stateMachine);
for (AbstractBusinessServiceVertex vertex : vertices) {
graphVerticesToFocus.addAll(vertex.accept(visitor));
}
LOG.debug("Found {} business services.", graphVerticesToFocus.size());
if (graphVerticesToFocus.isEmpty()) {
new InfoDialog("No result", getMessageForNoResultDialog()).open();
} else {
focusOnVertices(targets.get(0), graphVerticesToFocus, operationContext.getGraphContainer());
}
}
Aggregations