return;
this.setVisible(true);
if(!selectWays)
{
Edge e = ((WayItem) v).getPreviouslySelectedEdge();
if (e != null) {
if(previousEdge != null) {
// check integrity condition
if(!previousEdge.getToNode().equals(e.getFromNode()))
{
errorLabel.setVisible(true);
return;
} else {
errorLabel.setVisible(false);
}
}
previousEdge = e;
selectedEdges.add(e);
edgesWidget.addItem(e.getParentWay().getDescription() + ":" + e.getInternalID());
}
} else {
Way w = ((WayItem)v).getAssociatedElement();
List<Edge> forwardEdges = w.getForwardEdges();
for(Edge e : forwardEdges) {
if(previousEdge != null) {
if(!previousEdge.getToNode().equals(e.getFromNode()))
{
errorLabel.setVisible(true);
return;
} else {
errorLabel.setVisible(false);
}
}
previousEdge = e;
selectedEdges.add(e);
edgesWidget.addItem(e.getParentWay().getDescription() + ":" + e.getInternalID());
}
}
}