// TODO: clean the threading/scheduling functionality here (may need UNDO support) private void autoBrowse(List<ArtifactEditPart> selEP, IProgressMonitor monitor) { for (ArtifactEditPart endEP : selEP) { for (ArtifactEditPart startEP : selEP) { // check start and end so that we call auto-browse only once if (endEP == startEP) break; autoBrowse(startEP.getArtifact().getArt(), endEP.getArtifact().getArt(), 5, monitor); } } }