@Override
  public void execute(
      final CEdgeLabelEnterState<NodeType, EdgeType> state, final MouseEvent event) {
    highlightEdge(state.getLabel());

    final AbstractZyGraph<NodeType, EdgeType> graph = state.getGraph();

    final EdgeLabel label = state.getLabel();

    for (final IZyEditModeListener<NodeType, EdgeType> listener :
        state.getStateFactory().getListeners()) {
      try {
        listener.edgeLabelEntered(label, event);
      } catch (final Exception exception) {
        // TODO: (timkornau): implement logging here.
      }
    }

    graph.updateViews();
  }
Highlights the edges that are attached to the label that is entered.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/editmode/actions/CDefaultEdgeLabelEnterAction.java