Search in sources :

Example 6 with ResultStep

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);
        }
    }
}
Also used : ResultStep(edu.cmu.cs.hcii.cogtool.model.ResultStep)

Aggregations

ResultStep (edu.cmu.cs.hcii.cogtool.model.ResultStep)6 PERTChartSelectionState (edu.cmu.cs.hcii.cogtool.ui.PERTChartSelectionState)2 PERTChartOperatorBar (edu.cmu.cs.hcii.cogtool.uimodel.PERTChartOperatorBar)2 AlertHandler (edu.cmu.cs.hcii.cogtool.util.AlertHandler)2 EventObject (java.util.EventObject)2 APredictionResult (edu.cmu.cs.hcii.cogtool.model.APredictionResult)1 AUndertaking (edu.cmu.cs.hcii.cogtool.model.AUndertaking)1 Design (edu.cmu.cs.hcii.cogtool.model.Design)1 DoublePoint (edu.cmu.cs.hcii.cogtool.model.DoublePoint)1 HumanCSVParser (edu.cmu.cs.hcii.cogtool.model.HumanCSVParser)1 IPredictionAlgo (edu.cmu.cs.hcii.cogtool.model.IPredictionAlgo)1 ITaskDesign (edu.cmu.cs.hcii.cogtool.model.Project.ITaskDesign)1 Script (edu.cmu.cs.hcii.cogtool.model.Script)1 TaskApplication (edu.cmu.cs.hcii.cogtool.model.TaskApplication)1 TimePredictionResult (edu.cmu.cs.hcii.cogtool.model.TimePredictionResult)1 TraceParser (edu.cmu.cs.hcii.cogtool.model.TraceParser)1 ProjectSelectionState (edu.cmu.cs.hcii.cogtool.ui.ProjectSelectionState)1 PERTStepDependency (edu.cmu.cs.hcii.cogtool.uimodel.PERTChartOperatorBar.PERTStepDependency)1 AUndoableEdit (edu.cmu.cs.hcii.cogtool.util.AUndoableEdit)1 IListenerAction (edu.cmu.cs.hcii.cogtool.util.IListenerAction)1