use of edu.cmu.cs.hcii.cogtool.model.ResultStep in project cogtool by cogtool.
the class PERTTraceMouseState method dealWithMouseDoubleClick.
@Override
protected void dealWithMouseDoubleClick(MouseEvent me) {
super.dealWithMouseDoubleClick(me);
int selectedLine = textBox.getLineAtOffset(textBox.getCaretOffset());
selection.deselectAll();
Iterator<ResultStep> sIt = result.getModelSteps().iterator();
while (sIt.hasNext()) {
ResultStep step = sIt.next();
if ((step.traceEnd == selectedLine + 1) || (step.traceStart == selectedLine)) {
selection.addSelectedStep(step);
}
}
}
Aggregations